Skip to content

suraj142/website-2

This branch is 1 commit ahead of, 279 commits behind mono/website:gh-pages.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7b33ad6 · Sep 30, 2020
Sep 17, 2020
May 18, 2020
Sep 21, 2020
Sep 23, 2019
Feb 16, 2017
May 25, 2020
Aug 25, 2020
Jul 7, 2020
Sep 28, 2020
Mar 1, 2018
Aug 29, 2017
Feb 13, 2019
Feb 7, 2016
Feb 7, 2016
Sep 23, 2019
Nov 27, 2018
Oct 11, 2018
Aug 8, 2014
Apr 8, 2020
Jul 26, 2014
Mar 19, 2019
Aug 4, 2017
Aug 10, 2020
Feb 25, 2019
Sep 30, 2020
Jul 7, 2020
Jul 16, 2014
Mar 23, 2018
Sep 23, 2019

Repository files navigation

Mono Project Website Build Status

This repository contains the files used for generating the Mono website.

The site uses Jekyll, a static site generator. The site is hosted on GitHub Pages which natively supports Jekyll so every time when someone pushes to this repository, the website will be built and updated. If you want to host it yourself then refer to : Setting up a local copy of the website.

Contributing to the website


Note: The major issues or feature request should be filed on : issue tracker first, so that we can discuss the implications.

If you want to edit a page, the easiest way is to click the Edit page on GitHub The link is available under the page title on the website.

This will open the source file on GitHub where you can click the pencil button to start editing the file: Arrow to pencil

GitHub's editor will show you both the Markdown source as well as a preview of the rendered page: Code editor

After you've finished making your changes, a prgiveoper summary and description and click the "Propose file change" button to open a pull request: Propose file change

Setting up a local copy of the website

For bigger changes, using the web-based editor on GitHub is not really convenient. A better way would be to setup a local copy of the website where you can experiment.

Dependencies

  • Ruby - Jekyll is written in Ruby
  • Bundler - a package manager for Ruby. Install it by running gem install bundler

After you've forked and cloned the repository, run the following commands:

  1. bundle install - downloads the required libraries
  2. bundle exec jekyll serve - builds the website and runs a local webserver on port 4000

Note: you can add the --watch option when running jekyll serve to let Jekyll watch for file changes, which means the site will be rebuilt when a file is modified.

Note 2: on case-insensitive file systems like on Windows and macOS you'll run into redirect loops for some URLs. The workaround is to disable redirects locally by removing the gems: jekyll-redirect-from entry from _config.yml.

The site should now be running locally: website

Repository structure

  • _includes - special folder contains snippets that can be included via {% include file.html %} in other pages
  • _layouts - special folder contains the layouts that are shared between pages. Layouts can be inherited, the root layout is base.html.
  • _posts - special folder, contains the source pages for the blog section, see Writing a blog post
  • _site - the output of the generated site is stored here by default, this folder only exists after Jekyll built the site
  • archived - content that is no longer relevant but kept to keep external links working
  • community - contains the source pages for the /community website section
  • css - contains the main stylesheet
  • docs - contains the source pages for the /docs website section
  • download - contains the source pages for the /download website section
  • files - stores binary files used in pages
  • images - stores the images used in pages
  • news - lists the blog pages from the _posts directory

Writing a blog post

Blogging is very easy with Jekyll. Browse to _posts directory, copy the Markdown file _TEMPLATE.md and rename that file following the file name convention: YEAR-MONTH-DAY-title.md. Then open the file you renamed and follow the steps there to complete writing a blog post.

Make sure to not include special characters in the file name. The blog entry's publishing date is automatically extracted from the file name.

About

Mono's web site.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 74.6%
  • Ruby 12.4%
  • CSS 8.3%
  • TeX 3.8%
  • Other 0.9%