Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.65 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.65 KB

This documentation is written in Markdown.

Markdown files end in .md. You need a program to translate Markdown code into .html. The Makefile and build scripts are written to execute the Sphinx compiler, which is capable of translating .md files into a variety of target formats. It is also capable of extracting documentation from the source code of certain programming languages, and formatting that into target representation.

Publish changes online

  • This repository is enabled with github actions that will build, and publish the html pages on a seperate branch gh_pages.
  • When you commit and push changes to the main branch on github, the github action is triggered.
  • Once triggerred, it takes a few seconds before you can see the changes online.

Build webpages locally

Sphinx installation documentation is available here.

Below are TLDR steps to build html pages locally.

Install Dependencies

git clone https://github.com/cmu-mfi/cmu-mfi.github.io.git
cd ./cmu-mfi.github.io
python -m venv ./.venv

# Linux/macOS Terminal
source .venv/bin/activate

# Windows CMD
call .venv\Scripts\activate.bat

pip install -U sphinx sphinx_rtd_theme myst_parser sphinx_copybutton sphinx_design

Build doc

cd cmu-mfi.github.io

# Linux/macOS Terminal
source .venv/bin/activate

# Windows CMD
call .venv\Scripts\activate.bat

cd doc
make html

The HTML pages are in doc/_build/html.