This guide explains how to build and run the Ufil documentation locally.
By the end, you should be able to view the documentation in your browser, similar to the example shown below.
Alternatively, find a hosted version of the documentation at: https://bassamlab.github.io/ufil-docs/
This repository contains HTML-based Sphinx documentation. You can build, preview, and update the documentation easily using Visual Studio Code with a dev container.
- Docker installed and running
- Visual Studio Code installed
- Dev Containers extension for VS Code
-
Open the repository in VS Code
Open this folder in VS Code usingFile > Open Folder. -
Reopen in Container
When prompted by VS Code, click "Reopen in Container".
If you're not prompted:- Open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Select: Dev Containers: Reopen in Container
VS Code will now build and start the dev container with all dependencies pre-installed.
- Open the Command Palette (
Once inside the container, you can use the following predefined VS Code tasks:
-
📄 Make HTML
Builds the documentation.- Run via Command Palette →
Tasks: Run Task→ Make html - Output is placed in the
_build/htmldirectory.
- Run via Command Palette →
-
🌐 Start Webserver
Serves the built documentation locally athttp://localhost:8000- Run via Command Palette →
Tasks: Run Task→ Start webserver
- Run via Command Palette →
-
🛑 Stop Webserver
Stops the running local server.- Run via Command Palette →
Tasks: Run Task→ Stop webserver
- Run via Command Palette →
- If you edit the documentation, rerun Make html to see the updates.
- Make sure the server is running when you want to preview your changes in the browser.
Feel free to submit pull requests or open issues for improvements or suggestions.
Happy documenting! ✨
