-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from salsadigitalauorg/feature/DEVOPS-499-docs…
…-improvements Added docsite generator
- Loading branch information
Showing
21 changed files
with
156 additions
and
110 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,35 @@ | ||
FROM python:3.11-slim | ||
|
||
ARG OPERATION=build | ||
ARG ANSIBLE_COLLECTIONS_PATH=/collections | ||
ENV ANSIBLE_COLLECTIONS_PATH=${ANSIBLE_COLLECTIONS_PATH} | ||
|
||
RUN set -ex; \ | ||
mkdir -p ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/lagoon /built-docs; \ | ||
apt-get update && apt-get install -y rsync; \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY api ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/lagoon/api | ||
|
||
WORKDIR ${ANSIBLE_COLLECTIONS_PATH}/ansible_collections/lagoon/api | ||
|
||
RUN set -ex; \ | ||
python -m pip install ansible antsibull-docs; \ | ||
\ | ||
if [ "${OPERATION}" = "build" ]; then \ | ||
# Use more lenient linting version - use the stricter one when ready. | ||
antsibull-docs lint-collection-docs .; \ | ||
# antsibull-docs lint-collection-docs --plugin-docs .; \ | ||
antsibull-docs sphinx-init --use-current \ | ||
--squash-hierarchy lagoon.api --dest-dir /built-docs; \ | ||
cd /built-docs; \ | ||
python -m pip install -r requirements.txt; \ | ||
./build.sh; \ | ||
fi | ||
|
||
WORKDIR /built-docs/build/html | ||
|
||
EXPOSE 8000 | ||
|
||
CMD [ "python", "-m", "http.server" ] |
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 |
---|---|---|
|
@@ -4,3 +4,5 @@ api/tests/output | |
|
||
.docker/mock-server/node_modules | ||
.docker/mock-server/package-lock.json | ||
|
||
built-docs |
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
description: | ||
- The project values. | ||
type: dict | ||
default: None | ||
default: {} | ||
''' | ||
|
||
EXAMPLES = r''' | ||
|
Oops, something went wrong.