File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 692692 " </div>"
693693 ]
694694 },
695+ {
696+ "cell_type" : " markdown" ,
697+ "metadata" : {},
698+ "source" : [
699+ " ## Automatic Creation of HTML and PDF output on GitLab Pages\n " ,
700+ " \n " ,
701+ " 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 " ,
702+ " ```\n " ,
703+ " image: python:3-slim\n " ,
704+ " \n " ,
705+ " variables:\n " ,
706+ " PIP: python3 -m pip\n " ,
707+ " SPHINX: python3 -m sphinx -W --keep-going --color\n " ,
708+ " \n " ,
709+ " build-docs:\n " ,
710+ " stage: build\n " ,
711+ " script:\n " ,
712+ " - apt-get update -y\n " ,
713+ " - apt-get install -y --no-install-recommends pandoc\n " ,
714+ " - $PIP install -r doc/requirements.txt\n " ,
715+ " - $SPHINX -d doctrees doc html -b html\n " ,
716+ " - $SPHINX -d doctrees doc linkcheck -b linkcheck\n " ,
717+ " artifacts:\n " ,
718+ " when: always\n " ,
719+ " paths:\n " ,
720+ " - html\n " ,
721+ " - linkcheck/output.*\n " ,
722+ " \n " ,
723+ " pages:\n " ,
724+ " stage: deploy\n " ,
725+ " variables:\n " ,
726+ " GIT_STRATEGY: none\n " ,
727+ " script:\n " ,
728+ " - mv html public\n " ,
729+ " artifacts:\n " ,
730+ " paths:\n " ,
731+ " - public\n " ,
732+ " rules:\n " ,
733+ " - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH\n " ,
734+ " ```\n " ,
735+ " Note: \n " ,
736+ " \n " ,
737+ " 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. "
738+ ]
739+ },
695740 {
696741 "cell_type" : " markdown" ,
697742 "metadata" : {},
You can’t perform that action at this time.
0 commit comments