File tree Expand file tree Collapse file tree 5 files changed +40
-33
lines changed
Expand file tree Collapse file tree 5 files changed +40
-33
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ https://saltstack.gitlab.io/open/docs/salt-user-guide
1212https://twitter.com/intent/follow?screen_name=Salt_Project_OS
1313https://www.example.com
1414https://www.example.org
15+ https://your-GitLab-username.gitlab.io
Original file line number Diff line number Diff line change 22stages :
33 - pre-commit
44 - build-docs
5- - publish-docs
5+ - publish
66 - trigger-upload
77
8+ include :
9+ - project : saltstack/pop/cicd/ci-templates
10+ file : /docswork/url-tester-brok.yml
11+ - project : saltstack/pop/cicd/ci-templates
12+ file : /docswork/publish-docs-gitlab.yml
13+ - project : saltstack/pop/cicd/ci-templates
14+ file : /docswork/salt-publish-docs-release.yml
15+
16+ variables :
17+ CICD_UPSTREAM_PATH : " saltstack/open/docs/salt-user-guide"
18+
19+ url-tester-brok :
20+ stage : pre-commit
21+
822pre-commit :
923 stage : pre-commit
1024 image : python:3.8-bullseye
25+ variables :
26+ PRE_COMMIT_HOME : " ${CI_PROJECT_DIR}/pre-commit-cache"
27+ cache :
28+ key : pre-commit-cache
29+ paths :
30+ - pre-commit-cache/
1131 script :
1232 - pip install -U pip setuptools wheel
1333 - pip install -r requirements-dev.txt
@@ -30,25 +50,13 @@ build-docs-html:
3050 expire_in : 30 days
3151
3252pages :
33- stage : publish-docs
34- image : debian:bullseye-slim
35- script :
36- - mv html public
37- - ' echo "Gitlab Pages available at: ${CI_PAGES_URL}"'
38- artifacts :
39- paths :
40- - public
41- expire_in : 30 days
53+ stage : publish
54+ variables :
55+ CICD_DOCS_VERSION_LATEST : latest
4256
43- trigger-upload :
57+ publish-docs :
4458 stage : trigger-upload
45- rules :
46- - if : ' $CI_COMMIT_REF_PROTECTED == "true" && $CI_PROJECT_PATH == $CICD_UPSTREAM_PATH'
4759 variables :
48- ARTIFACT_PIPELINE_ID : $CI_PIPELINE_ID
49- GITLAB_PROJECT_PATH : " saltstack%2Fopen%2Fdocs%2Fsalt-user-guide"
50- DOCS_PATH : " docs.saltproject.io/salt/user-guide/en/latest"
51- RCLONE_OPTIONS : " sync -c -v"
52- trigger :
53- project : saltstack/open/docs/docs-upload
54- strategy : depend
60+ CICD_S3_DEST_PATH : " docs.saltproject.io/salt/user-guide/"
61+ rules :
62+ - if : ' $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == $CICD_UPSTREAM_PATH'
Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ Check out the following links related to the Salt User Guide:
4444 Salt Project.
4545* `Salt Project Home Page <https://saltproject.io/ >`__: The web portal for
4646 Salt community events and resources.
47- * `Contributing Guide <https://docs.saltproject .io/salt/user-guide/en/latest /topics/contributing.html >`__:
47+ * `Contributing Guide <https://saltstack.gitlab .io/open/docs/docs-hub /topics/contributing.html >`__:
4848 For information about contributing to the Salt User Guide and other Salt
4949 documentation projects, including how to set up your environment and other
5050 policies around submitting merge requests or issues.
51- * `Salt Style Guide <https://docs.saltproject .io/salt/user-guide/en/latest /topics/style-guide.html >`__:
51+ * `Salt Style Guide <https://saltstack.gitlab .io/open/docs/docs-hub /topics/style-guide.html >`__:
5252 For general guidance about using Salt Project terms and other style or
5353 formatting conventions.
54- * `Writing Salt documentation (rST guide) <https://docs.saltproject .io/salt/user-guide/en/latest/ topics/writing-salt-docs .html >`__:
54+ * `Writing Salt documentation (rST guide) <https://saltstack.gitlab .io/open/docs/docs-hub/ topics/rst-guide .html >`__:
5555 For conventions and guidelines about formatting reStructured Text (rST) in
5656 Salt documentation.
5757
Original file line number Diff line number Diff line change 1- Sphinx-Substitution-Extensions >= 2022.02 .16
2- furo >= 2022.06.21
3- sphinx-copybutton >= 0.5.0
4- sphinx-design
1+ Sphinx-Substitution-Extensions >= 2022.2 .16
2+ furo >= 2022.12.7
3+ sphinx-copybutton >= 0.5.1
4+ sphinx-design >= 0.3.0
55sphinx-inline-tabs >= 2022.1.2b11
66sphinx-prompt
7- sphinx-tabs >= 3.3 .1
8- sphinx >= 4.4 .0
7+ sphinx-tabs >= 3.4 .1
8+ sphinx >= 5.3 .0
Original file line number Diff line number Diff line change 1- docutils
2- nox >= 2020.12.31
3- pre-commit >= 2.17.0
4- sphinx-tabs
1+ nox >= 2022.11.21
2+ pre-commit >= 2.20.0
You can’t perform that action at this time.
0 commit comments