This site is built using Sphinx with read-the-docs theme.
Install packages
pip install -r requirements.txt
apt-get install python3-sphinx
# build the html and start a local http server
make html
cd _build/html
python -m http.server
# or python3
python3 -m http.server
Then the website is available at localhost:8000
# commit and push
git add *
git commit -m 'commit message'
git push
# If it does not succeed please check https://github.com/stonet-research/stonet-research.github.io/actions or the `Deployments` branch.
The webpages is written in reStructuredText. read the docs rst file example
The main menu is defined in index.rst
The path to the contents can also be found in the rst file.
For example
.. toctree::
:maxdepth: 2
:hidden:
:caption: Research Projects
/research_projects/research_projects
is the 'Research Projects' tab and the contents are in /research_projects/research_projects.
The source code of read the docs is a good example:
read the docs tutorial corresponding source code
- Copy your pdf to
publications/pdfs
(if available) - Add a new entry to
publications/publications.rst
please add it to corresponding year and use the format "paper name, authors (year) conference (conference link), location. PDF OR DOI.
To reference the pdf from within publications.rst
use:
:download:`pdf_name <pdfs/pdf_name>`
- Create a
.png
image of 512x512 and copy it topeople/photos
. - Add the person to
people/people.rst
, use the format "role name".