Skip to content

Commit

Permalink
[FIX] import Path
Browse files Browse the repository at this point in the history
  • Loading branch information
Trzcin committed Nov 29, 2024
1 parent 1062a86 commit 6aec69a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ build-docs:
stage: build
when: manual
image: $CI_DOCS_DOCKER_IMAGE
tags: ['ace-x86_64']
tags: ["ace-x86_64"]
before_script:
- cd docs
- pip3 install -r requirements.txt
script:
- cd docs
- |
printf "\nfrom antmicro_sphinx_utils.defaults import relative_to_git\ngit_path = relative_to_git(Path(__file__).parent)\nhtml_css_files = ['/stylesheets/MystEditor.css']\nhtml_js_files = [(f'/javascripts/myst_loader.js?docs-root={str(git_path).replace(\"/\", \"%%2F\")}', { 'type': 'module' })]" >> source/conf.py
printf "\nfrom antmicro_sphinx_utils.defaults import relative_to_git\nfrom pathlib import Path\ngit_path = relative_to_git(Path(__file__).parent)\nhtml_css_files = ['/stylesheets/MystEditor.css']\nhtml_js_files = [(f'/javascripts/myst_loader.js?docs-root={str(git_path).replace(\"/\", \"%%2F\")}', { 'type': 'module' })]" >> source/conf.py
- make html
- cd ..
- tar cf $CI_DOCS_ARCHIVE -C docs/build/html/ .
Expand All @@ -70,7 +70,7 @@ doc-deploy:
deploy-docs:
stage: deploy
when: manual
tags: ['docs']
tags: ["docs"]
image: $CI_DOCS_DOCKER_IMAGE
variables:
GIT_STRATEGY: none
Expand Down

0 comments on commit 6aec69a

Please sign in to comment.