Skip to content

Commit

Permalink
made improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kolibril13 authored and mgeier committed Jan 9, 2022
1 parent 525d7ae commit 3b97dcb
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions doc/usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -700,26 +700,41 @@
"\n",
"When using GitLab pages, you can use nbsphinx by adding the file `.gitlab-ci.yml` to your repo and copying the following lines into this file:\n",
"```\n",
"image: python\n",
"\n",
"before_script:\n",
" - apt-get update -y\n",
" - apt-get install -y pandoc\n",
"image: python:3-slim\n",
"\n",
"variables:\n",
" PIP: python3 -m pip\n",
" SPHINX: python3 -m sphinx -W --keep-going --color\n",
"\n",
"build-docs:\n",
" stage: build\n",
" script:\n",
" - apt-get update -y\n",
" - apt-get install -y --no-install-recommends pandoc\n",
" - $PIP install -r doc/requirements.txt\n",
" - $SPHINX -d doctrees doc html -b html\n",
" - $SPHINX -d doctrees doc linkcheck -b linkcheck\n",
" artifacts:\n",
" when: always\n",
" paths:\n",
" - html\n",
" - linkcheck/output.*\n",
" \n",
"pages:\n",
" stage: deploy\n",
" variables:\n",
" GIT_STRATEGY: none\n",
" script:\n",
" - pip install numpy ipykernel\n",
" - pip install sphinx nbsphinx\n",
" - mkdir -p doc; cd doc\n",
" - sphinx-build -b html source ../public/\n",
" - mv html public\n",
" artifacts:\n",
" paths:\n",
" - public\n",
" only:\n",
" - master\n",
"```"
" rules:\n",
" - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH\n",
"```\n",
"Note: \n",
"\n",
"You migh have to change the line `docs/` to `docs/source` in case that you have this folder structure, which is the default when using `sphinx-quickstart. "
]
},
{
Expand Down Expand Up @@ -925,4 +940,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

0 comments on commit 3b97dcb

Please sign in to comment.