• This repository has been archived on 14/Feb/2023
  • Stars
    star
    170
  • Rank 223,307 (Top 5 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The .NET Foundation's website

dotnetfoundation-website

NOTE: This repository is no longer being used to build the dotnetfoundation.org website! The new site is hosted in a Content Management System (CMS) and is no longer built from this repository.

This repository will be archived soon.

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.

More Repositories

1

foundation

This repo is no longer being used. The information that is here has been migrated to https://github.com/dotnet-foundation/website.
1,015
star
2

swag

Artwork used to create .NET Foundation swag (T-Shirts, Mugs etc)
334
star
3

projects

This repository is used for onboarding new projects
113
star
4

Home

This is the landing repository for the .NET foundation efforts. Start here!
83
star
5

content

Repo for submitting content for social amplification as well as content creation (i.e. blog, website, social)
77
star
6

dotnetfoundation-website

.NET Foundation Website
HTML
47
star
7

wg-education

Education working group
44
star
8

wg-outreach

Outreach working group
41
star
9

project-maturity-model

Proposal/RFC for new .NET library development model.
39
star
10

announcements

Subscribe to this repo to be notified of Announcements for the .NET Foundation
34
star
11

election

Election content has moved to the main site at dotnet-foundation/website
CSS
31
star
12

newsletter

The repository used to manage the monthly .NET Foundation Newsletter
30
star
13

wg-maintainers

Project maintainers' working group and committee
27
star
14

ecosystem-growth

21
star
15

mod-dotnet-bot

This is the repository for the mod-dotnet-bot.net website. Create your own coding companion by creating your custom dotnet-bot.
SCSS
19
star
16

wg-membership

Membership working group
18
star
17

membership

This is the code for https://dotnetfoundation.org/member
C#
14
star
18

wg-marketing

Marketing working group
7
star
19

academy

.NET Foundation Academy content
4
star
20

wg-technical-review

Technical Review working group
3
star
21

wg-corporate-relations

Corporate Relations working group
2
star
22

events

Repository for requesting event sponsorship and collateral for representing .NET Foundation at events
2
star
23

DevAroundTheSun

1
star
24

.github

1
star