зеркало из
1
0
Форкнуть 0
The .NET Foundation's website
Перейти к файлу
Claire Novotny d7c6242566
Merge pull request #886 from dotnet-foundation/corp-member-page
2021-07-23 14:28:57 -04:00
.github Update azure-static-web-apps-jolly-grass-05beb181e.yml 2021-06-21 14:49:50 -07:00
Analyzers Merge pull request #670 from MoienTajik/moien/net5 2021-01-15 11:30:52 -05:00
Properties Moves everything to the root and fixes the edit on GitHub link 2020-05-06 09:24:00 -04:00
Utils Replace class names with keywords for common types 2020-11-28 00:32:12 +03:30
functions add YT video 2021-06-15 11:23:47 -07:00
input Merge pull request #886 from dotnet-foundation/corp-member-page 2021-07-23 14:28:57 -04:00
.editorconfig move to root 2020-05-01 10:00:55 -04:00
.gitattributes add editorconfig 2020-04-22 16:39:13 -04:00
.gitignore Update tsc script 2020-10-05 08:15:40 -07:00
App.config Mark current board members 2020-08-04 10:52:26 -04:00
AppSettings.cs Replace class names with keywords for common types 2020-11-28 00:32:12 +03:30
BlogFeedItem.cs Adds recent blog posts to speaker page 2020-10-04 20:56:23 -04:00
CODE_OF_CONDUCT.md Add a code of conduct 2020-07-28 14:57:22 +02:00
FixedAtomParser.cs Adds recent blog posts to speaker page 2020-10-04 20:56:23 -04:00
Generator.csproj Remove commented sections in csproj 2020-11-28 00:32:12 +03:30
Generator.sln Moves everything to the root and fixes the edit on GitHub link 2020-05-06 09:24:00 -04:00
GeocodeLocations.cs Update GeocodeLocations.cs 2020-10-22 07:51:41 -04:00
GetBlogFeeds.cs Updating Statiq and fixing remaining link validation errors 2020-10-22 07:39:37 -04:00
LICENSE Update LICENSE 2020-09-30 22:17:52 +05:30
Program.cs Undo temp turning off of the speakers to allow for quicker dev build 2021-05-18 19:03:06 -04:00
README.md Upgrade project to .NET 5 2020-11-28 00:32:12 +03:30
SiteKeys.cs Adds support for preferred pronouns to the speaker directory 2020-12-17 09:25:26 -05:00
SpeakerImage.cs Remove unused namespaces 2020-11-28 00:32:12 +03:30
SpeakerLinkAttribute.cs add some comments 2020-10-19 09:33:52 -04:00
XmlStreamReader.cs Adds recent blog posts to speaker page 2020-10-04 20:56:23 -04:00
azure-pipelines.yml Maybe the project wildcard needs to be quoted? 2020-05-06 09:39:46 -04:00

README.md

dotnetfoundation-website

This repository contains the solution that is used to build and deploy the dotnetfoundation website.

Pull requests and issues are welcome!

Prerequisites

Build and test

The basic steps to run or build the project:

  1. Use dotnet run from the root of the repository to generate the static site.
  2. After the build, check the output folder to review the generated HTML files.

To build and preview the site, run:

dotnet run -- preview

The preceding command launches a preview web server that can be viewed from http://localhost:5080. The site automatically rebuilds and refreshes when content changes are made.

Project Structure

This website uses Statiq Web, a flexible and extensible static site generator for .NET.

  • App.Config : The configuration file for the project. Review the appSettings section of App.Config.

  • Program.cs:

    • Handles the generation of the site.
    • Starts the web server when running from Visual Studio.
    • Defines the input folder and the output of static files.
  • input : The input folder contains source files that are rendered as HTML files.

    • _partials folder contains small sections of code that are required in ther views, includes:
      • _head.cshtml: Contains the head section of the view and includes the initial stylesheet and JavaScript imports.
      • _header.cshtml: Common header used for views. Includes the main navigation.
      • _footer.cshtml: Common footer for views.
    • _layout.cshtml: Location where the page structure, include partials, nalytics code, and other imports are built.
    • index.cshtml: Main page for the site. Properties for the page can be efined at the top of the file. For example, a specific title for the page.
    • css folder contains all the stylesheet files required.
    • js folder contains the JavaScript libraries and other custom scripts.

Each file inside the input folder is processed by Statiq and will generate static output files.