【发布时间】:2022-01-21 01:15:40
【问题描述】:
整个项目的链接https://gitlab.com/ComplicatedPhenomenon/doubancrawler
gitlab 页面如下 (https://complicatedphenomenon.gitlab.io/doubancrawler/api.html)
.gitlab-ci.yml 有什么问题吗?
image: python:3.7-alpine
test:
stage: test
script:
- pip install -r requirements2.txt
- cd docs/source/
- sphinx-build -b html . public
- mv public ../..
only:
- branches
except:
- master
pages:
stage: deploy
script:
- pip install -r requirements2.txt
- cd docs/source/
- sphinx-build -b html . public
- mv public ../..
artifacts:
paths:
- public
only:
- master
【问题讨论】:
-
当 autodoc 无法找到/导入您的参考文献时会发生这种情况。也许尝试在工作中先安装你的包,或者在你的 sphinx 配置中修改
sys.path以确保在构建文档时可以导入你的模块。
标签: python gitlab python-sphinx gitlab-pages