forked from NUWCDIVNPT/stig-manager
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: build updates (NUWCDIVNPT#1162)
* chore: update docs dependencies * wip * tweaked build materials a bit * added versions * updates to docs build process
- Loading branch information
Showing
5 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM sphinxdoc/sphinx:7.1.2 | ||
|
||
WORKDIR /docs | ||
ADD requirements.txt /docs | ||
RUN pip3 install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
|
||
SPHINX_IMAGE=sphinxdoc/sphinx:5.3.0 | ||
SPHINX_IMAGE_W_REQUIREMENTS=sphinx-w-requirements | ||
|
||
# Change to this script directory | ||
cd "$(dirname "$(realpath "$0")")" | ||
|
||
find _build -type f -not -name '.gitignore' -delete | ||
find _build -type d -empty -delete | ||
|
||
docker run --rm -v $(pwd):/docs $SPHINX_IMAGE \ | ||
/bin/bash -c "pip3 install -r /docs/requirements.txt && make html && chown -R $(id -u):$(id -g) /docs/_build" | ||
docker build -t $SPHINX_IMAGE_W_REQUIREMENTS . | ||
|
||
docker run --rm -v $(pwd):/docs $SPHINX_IMAGE_W_REQUIREMENTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters