From 190cb8a80dc958a86ba7c0ebd42d80588b9ed6ae Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Tue, 20 Feb 2024 14:49:40 +0000 Subject: [PATCH] ci: Create Sphinx base job --- utils/tests/gitlab-ci-doc.yml | 69 +++++++++++------------------------ 1 file changed, 22 insertions(+), 47 deletions(-) diff --git a/utils/tests/gitlab-ci-doc.yml b/utils/tests/gitlab-ci-doc.yml index 91c810f84..5894b7464 100644 --- a/utils/tests/gitlab-ci-doc.yml +++ b/utils/tests/gitlab-ci-doc.yml @@ -69,62 +69,37 @@ doxygen: # - nsnam # - linux -manual: +.sphinx-doc: extends: .doc script: - # - mkdir -p public/manual - - cd doc/manual + # - mkdir -p public/$DOC_DIR + - cd doc/$DOC_DIR - make html - make latexpdf - # - mv build/html ../../public/manual - # - mv build/latex/ns-3-manual.pdf ../../public/ - # only: - # - master + # - mv build/html ../../public/$DOC_DIR + # - mv build/latex/ns-3-$DOC_DIR.pdf ../../public/ + +manual: + extends: .sphinx-doc + variables: + DOC_DIR: manual tutorial: - extends: .doc - script: - # - mkdir -p public/manual - - cd doc/tutorial - - make html - - make latexpdf - # - mv build/html ../../public/manual - # - mv build/latex/ns-3-tutorial.pdf ../../public/ - # only: - # - master + extends: .sphinx-doc + variables: + DOC_DIR: tutorial models: - extends: .doc - script: - # - mkdir -p public/models - - cd doc/models - - make html - - make latexpdf - # - mv build/html ../../public/models - # - mv build/latex/ns-3-model-library.pdf ../../public - # only: - # - master + extends: .sphinx-doc + variables: + DOC_DIR: models contributing: - extends: .doc - script: - # - mkdir -p public/contributing - - cd doc/contributing - - make html - - make latexpdf - # - mv build/html ../../public/manual - # - mv build/latex/ns-3-manual.pdf ../../public/ - # only: - # - master + extends: .sphinx-doc + variables: + DOC_DIR: contributing installation: - extends: .doc - script: - # - mkdir -p public/installation - - cd doc/installation - - make html - - make latexpdf - # - mv build/html ../../public/manual - # - mv build/latex/ns-3-manual.pdf ../../public/ - # only: - # - master + extends: .sphinx-doc + variables: + DOC_DIR: installation