gmin7 / libigl.github.io

Repository for the libigl website, online tutorial and documentation

Home Page:http://libigl.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building the Website

For developers who want to contribute to the website/documentation of libigl. The website is now hosted in its own repository separate from the main libigl repository. You can edit directly pages of the website and create an associated pull requests on github. For more substantial changes, you may want to preview your changes to the website before committing them. The instructions bellow explain how to preview the website on your local machine.

Prerequisites

  1. If you do not already have it, install conda on your machine. We recommend using miniconda3. On Linux you can run:
    wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
    bash Miniconda3-latest-Linux-x86_64.sh
  2. Install the conda environment for the website:
    conda env create -f libigl-website.yml
    

Using mkdocs

  1. Activate the conda environment installed on the previous step:
    conda activate libigl-website
  2. Preview the website locally (run this command in the root folder of the libigl project):
    mkdocs serve

!!! tip

Dead links can be checked using the [LinkChecker](https://linkchecker.github.io/linkchecker/)
tool. Run the website locally, then run LinkChecker on it:
```bash
linkchecker http://127.0.0.1:8000
```

Deployment

Deployment has been automated through the use of GitHub Actions. The configuration file is located here.

References

About

Repository for the libigl website, online tutorial and documentation

http://libigl.github.io