This project provides a template for creating scientific texts using Sphinx and the Sphinx-book-theme. The content can be written in Markdown or reStructuredText. Below are the steps to get started with this template.
- Python 3.x
- pip
- virtualenv
-
Clone the Repository
Fork the repository and clone it to your local machine:
git clone https://github.com/yourusername/Sphinx-Book-Template cd Sphinx-Book-Template -
Set Up a Virtual Environment
Create and activate a virtual environment to manage dependencies:
virtualenv venv source venv/bin/activate -
Install Dependencies
Install the required Python packages:
pip install -r python-requirements.txt
To create HTML documentation:
make htmlOpen the output in your browser:
xdg-open _build/html/index.htmlTo create a PDF version, ensure LaTeX is installed and use Docker:
docker run --rm -v $(pwd):/docs sphinxdoc/sphinx-latexpdf sh -c 'apt update; apt install -y enchant-2; pip install -U -r python-requirements.txt; make latexpdf'Find the generated PDF in the _build/latex directory.
To check spelling:
make spellingEnsure your web server has access to the public_html directory:
ssh yourserver.com
mkdir public_html
chmod go-rx --recursive ~
chmod go+x ~
chmod go+rx public_htmlConfigure ci.yml for Github CI to automate deployment. Set up SSH keys and variables as described in the documentation.
This project is licensed under the MIT License. See the LICENSE file for details.