@@ -3,9 +3,9 @@ name: Build and deploy docs
33on :
44 # Trigger the workflow on push
55 push :
6- # Every branch
7- branches :
8- - ' ** '
6+ # To the develop and master branches
7+ branches : [develop, master]
8+
99 # Allows you to run this workflow manually from the Actions tab
1010 workflow_dispatch :
1111
7171 # https://www.mkdocs.org
7272 - name : Install MkDocs and its dependencies
7373 run : >
74- pip install mkdocs mkdocs-material 'mkdocs-autorefs<1.3.0'
74+ pip install mkdocs mkdocs-material 'mkdocs-autorefs<1.3.0'
7575 mkdocs-jupyter mkdocs-plugin-inline-svg
7676 mkdocs-markdownextradata-plugin mkdocstrings-python
7777
@@ -100,7 +100,7 @@ jobs:
100100 cp assets-branding/EasyDiffraction/icons/ed-icon_256x256.png docs/assets/images/favicon.png
101101 mkdir -p overrides/.icons/
102102 cp assets-branding/EasyDiffraction/icons/ed-icon_bw.svg overrides/.icons/easydiffraction.svg
103- cp assets-branding/EasyScience /icons/es -icon_bw.svg overrides/.icons/easyscience.svg
103+ cp assets-branding/EasyScienceOrg /icons/eso -icon_bw.svg overrides/.icons/easyscience.svg
104104
105105 # Copy Jupyter notebooks from the project to the docs folder
106106 # The notebooks are used to generate the documentation
@@ -119,10 +119,7 @@ jobs:
119119 # - assets-docs/mkdocs.yml - the common configuration (theme, plugins, etc.)
120120 # - docs/mkdocs.yml - the project-specific configuration (project name, TOC, etc.)
121121 - name : Create mkdocs.yml file
122- run : |
123- cp assets-docs/mkdocs.yml mkdocs.yml
124- echo "" >> mkdocs.yml
125- cat docs/mkdocs.yml >> mkdocs.yml
122+ run : cat ../assets-docs/mkdocs.yml docs/mkdocs.yml > mkdocs.yml
126123
127124 # Build the static files
128125 # Input: docs/ directory containing the Markdown files
0 commit comments