Skip to content
Snippets Groups Projects
Commit c06837fa authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

adding building pydocs to confluence

parent c3714bf4
No related branches found
No related tags found
No related merge requests found
Pipeline #51236 failed
......@@ -36,6 +36,17 @@ pages:
only:
- tags
confluence-doc:
stage: deploy
script:
- apt update
- apt install git -y
- pip install sphinx sphinx-confluencebuilder sphinxcontrib-blockdiag blockdiag sphinxcontrib-restbuilder sphinx_rtd_theme numpy m2r2
- python setup.py install
- sphinx-build -M confluence "doc" "doc"
only:
- tags
release-pypi:
tags:
- docker
......
......@@ -43,9 +43,31 @@ extensions = [
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
"sphinxcontrib.restbuilder",
"sphinxcontrib.confluencebuilder",
"m2r2",
]
def get_user_pass():
import getpass
if "WIKI_USER" in os.environ:
user = os.environ["WIKI_USER"]
else:
user = getpass.getpass("Username:")
if "WIKI_PASS" in os.environ:
password = os.environ["WIKI_PASS"]
else:
password = getpass.getpass()
return user, password
confluence_publish = True
confluence_space_name = "BPWP"
confluence_parent_page = "TraceWin python tools"
confluence_server_url = "https://confluence.esss.lu.se/"
confluence_server_user, confluence_server_pass = get_user_pass()
# set napoleon style docstring
napoleon_google_docstring = False
napoleon_use_param = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment