Skip to content

Commit

Permalink
Merge pull request #155 from FirelyTeam:clarify-and-fix-autobuild
Browse files Browse the repository at this point in the history
Clarify and fix autobuild
  • Loading branch information
wardweistra committed Feb 17, 2021
2 parents 0980a2c + d92df98 commit 61fc4fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ This is the source code for the Firely documentation site, documenting the Firel

## Building locally
1. Install dependencies: `pip install -r requirements.txt`
2. Run autobuild to have a copy running on localhost that updates when files change: `./autobuild.bat`
2. Run `./build.bat` for a single build.
3. For autobuild on localhost that updates when files change, install sphinx-autobuild (`pip install sphinx-autobuild`) and run: `./autobuild.bat`

## Adding a new RTD subproject

Expand All @@ -16,7 +17,7 @@ This is the source code for the Firely documentation site, documenting the Firel
2. Create empty RTD project: `sphinx-quickstart`

3. Copy from another subproject like https://github.com/firelyTeam/firely-docs-firely-terminal, and don't change just for your subproject to avoid diversion:
* In root: `build.bat`, `autobuild.bat`, `.gitignore`
* In root: `build.bat`, `autobuild.bat`, `.gitignore`, `requirements.txt`
* In root: `README.md` and update it for your project
* In `_templates`: `breadcrumbs.html` (to customize top page name), `layout.html` (for Firely layout and logo link), `searchbox.html` (for accessibility label on search field)
* In _static: `css/style.css`, `images/banner.png`
Expand Down
4 changes: 2 additions & 2 deletions autobuild.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REM You can install sphinx-autobuild using 'pip install sphinx-autobuild'
REM Serving the generated documents on localhost:7000, this can be changed using the -p parameter
REM Serving the generated documents on localhost:7000, this can be changed using the --port parameter

sphinx-autobuild -b html -p 7000 . .\_build\html
sphinx-autobuild -b html --port 7000 . .\_build\html

0 comments on commit 61fc4fa

Please sign in to comment.