From 4c7fe6edb5ff53662a47ab51b9afec6de32ae11f Mon Sep 17 00:00:00 2001 From: Antoine Le Morvan Date: Thu, 18 May 2023 19:21:04 +0200 Subject: [PATCH 1/6] Add scripts and doc to generate pdf --- build_pdf/README.MD | 24 +++++++++ build_pdf/build_admin_book.yml | 78 +++++++++++++++++++++++++++++ build_pdf/build_admin_book_it.yml | 78 +++++++++++++++++++++++++++++ build_pdf/build_all.sh | 19 +++++++ build_pdf/build_ansible_book.yml | 76 ++++++++++++++++++++++++++++ build_pdf/build_ansible_book_es.yml | 76 ++++++++++++++++++++++++++++ build_pdf/build_ansible_book_it.yml | 76 ++++++++++++++++++++++++++++ build_pdf/build_bash_book.yml | 76 ++++++++++++++++++++++++++++ build_pdf/build_bash_book_it.yml | 76 ++++++++++++++++++++++++++++ build_pdf/requirements.txt | 10 ++++ docs/assets/rocky-linux-logo.svg | 3 ++ 11 files changed, 592 insertions(+) create mode 100644 build_pdf/README.MD create mode 100644 build_pdf/build_admin_book.yml create mode 100644 build_pdf/build_admin_book_it.yml create mode 100644 build_pdf/build_all.sh create mode 100644 build_pdf/build_ansible_book.yml create mode 100644 build_pdf/build_ansible_book_es.yml create mode 100644 build_pdf/build_ansible_book_it.yml create mode 100644 build_pdf/build_bash_book.yml create mode 100644 build_pdf/build_bash_book_it.yml create mode 100644 build_pdf/requirements.txt create mode 100644 docs/assets/rocky-linux-logo.svg diff --git a/build_pdf/README.MD b/build_pdf/README.MD new file mode 100644 index 0000000000..398175eb2c --- /dev/null +++ b/build_pdf/README.MD @@ -0,0 +1,24 @@ +# How to generate your own book + +## Installation + +Fist, fork this repo. + +Next, please install the requirements: + +```bash +pip install --user -r requirements.txt +``` + +Then run the build process: + +```bash +cd build_pdf +mkdocs build -f path_to_config_file.yml +``` + +or launch the script bash to build everything: + +```bash +bash build_all.sh +``` diff --git a/build_pdf/build_admin_book.yml b/build_pdf/build_admin_book.yml new file mode 100644 index 0000000000..94a3704720 --- /dev/null +++ b/build_pdf/build_admin_book.yml @@ -0,0 +1,78 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Rocky Linux Admin Guide + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/RockyLinuxAdminGuide.pdf + verbose: false + +# Page tree +nav: + - admin_guide/00-toc.md + - admin_guide/01-presentation.md + - admin_guide/03-commands.md + - admin_guide/04-advanced-commands.md + - admin_guide/05-vi.md + - admin_guide/06-users.md + - admin_guide/07-file-systems.md + - admin_guide/08-process.md + - admin_guide/09-backups.md + - admin_guide/10-boot.md + - admin_guide/11-tasks.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_admin_book_it.yml b/build_pdf/build_admin_book_it.yml new file mode 100644 index 0000000000..ccdd0af06b --- /dev/null +++ b/build_pdf/build_admin_book_it.yml @@ -0,0 +1,78 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Rocky Linux Admin Guide + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/RockyLinuxAdminGuide.it.pdf + verbose: false + +# Page tree +nav: + - admin_guide/00-toc.it.md + - admin_guide/01-presentation.it.md + - admin_guide/03-commands.it.md + - admin_guide/04-advanced-commands.it.md + - admin_guide/05-vi.it.md + - admin_guide/06-users.it.md + - admin_guide/07-file-systems.it.md + - admin_guide/08-process.it.md + - admin_guide/09-backups.it.md + - admin_guide/10-boot.it.md + - admin_guide/11-tasks.it.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_all.sh b/build_pdf/build_all.sh new file mode 100644 index 0000000000..a57ce6af72 --- /dev/null +++ b/build_pdf/build_all.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +config_files=( + build_admin_book + build_ansible_book + build_bash_book + build_admin_book_it + build_ansible_book_it + build_bash_book_it + build_ansible_book_es +) + +for config_file in "${config_files[@]}" +do + echo "Building $config_file" + echo "---------------------" + mkdocs build -f $config_file.yml + echo "" +done diff --git a/build_pdf/build_ansible_book.yml b/build_pdf/build_ansible_book.yml new file mode 100644 index 0000000000..b86be2ea27 --- /dev/null +++ b/build_pdf/build_ansible_book.yml @@ -0,0 +1,76 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Learning Ansible with Rocky + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/LearningAnsibleWithRocky.pdf + verbose: false + +# Page tree +nav: + - learning_ansible/00-toc.md + - learning_ansible/01-basic.md + - learning_ansible/02-advanced.md + - learning_ansible/03-working-with-files.md + - learning_ansible/04-ansible-galaxy.md + - learning_ansible/05-deployments.md + - learning_ansible/06-large-scale-infrastructure.md + - learning_ansible/07-working-with-filters.md + - learning_ansible/08-management-server-optimizations.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_ansible_book_es.yml b/build_pdf/build_ansible_book_es.yml new file mode 100644 index 0000000000..9f50d63c6c --- /dev/null +++ b/build_pdf/build_ansible_book_es.yml @@ -0,0 +1,76 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Learning Ansible with Rocky + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/LearningAnsibleWithRocky.es.pdf + verbose: false + +# Page tree +nav: + - learning_ansible/00-toc.es.md + - learning_ansible/01-basic.es.md + - learning_ansible/02-advanced.es.md + - learning_ansible/03-working-with-files.es.md + - learning_ansible/04-ansible-galaxy.es.md + - learning_ansible/05-deployments.es.md + - learning_ansible/06-large-scale-infrastructure.es.md + - learning_ansible/07-working-with-filters.es.md + - learning_ansible/08-management-server-optimizations.es.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_ansible_book_it.yml b/build_pdf/build_ansible_book_it.yml new file mode 100644 index 0000000000..176fecdfad --- /dev/null +++ b/build_pdf/build_ansible_book_it.yml @@ -0,0 +1,76 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Learning Ansible with Rocky + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/LearningAnsibleWithRocky.it.pdf + verbose: false + +# Page tree +nav: + - learning_ansible/00-toc.it.md + - learning_ansible/01-basic.it.md + - learning_ansible/02-advanced.it.md + - learning_ansible/03-working-with-files.it.md + - learning_ansible/04-ansible-galaxy.it.md + - learning_ansible/05-deployments.it.md + - learning_ansible/06-large-scale-infrastructure.it.md + - learning_ansible/07-working-with-filters.it.md + - learning_ansible/08-management-server-optimizations.it.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_bash_book.yml b/build_pdf/build_bash_book.yml new file mode 100644 index 0000000000..ac30ac717a --- /dev/null +++ b/build_pdf/build_bash_book.yml @@ -0,0 +1,76 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Learning Bash with Rocky + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/LearningBashWithRocky.pdf + verbose: false + +# Page tree +nav: + - learning_bash/00-toc.md + - learning_bash/01-first-script.md + - learning_bash/02-using-variables.md + - learning_bash/03-data-entry-and-manipulations.md + - learning_bash/04-check-your-knowledge.md + - learning_bash/05-tests.md + - learning_bash/06-conditionnal-structures.md + - learning_bash/07-loops.md + - learning_bash/08-check-your-knowledge.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_bash_book_it.yml b/build_pdf/build_bash_book_it.yml new file mode 100644 index 0000000000..762288211f --- /dev/null +++ b/build_pdf/build_bash_book_it.yml @@ -0,0 +1,76 @@ +--- +site_name: 'Documentation' +site_url: 'https://docs.rockylinux.org' +docs_dir: '../docs/books' + +theme: + name: material + font: + text: Red Hat Text + features: + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - search.suggest + logo: assets/logo.png + favicon: assets/logo.png + palette: + - scheme: default + media: "(prefers-color-scheme: light)" + toggle: + icon: material/weather-night + name: Switch to dark mode + primary: black + - scheme: slate + media: "(prefers-color-scheme: dark)" + toggle: + icon: material/weather-sunny + name: Switch to light mode + primary: black + +markdown_extensions: + - abbr + - attr_list + - admonition + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg + - pymdownx.highlight + - pymdownx.superfences + - pymdownx.keys + - pymdownx.tabbed + - pymdownx.details + - pymdownx.tasklist + - footnotes + - def_list + - meta + +plugins: + - awesome-pages + - tags + - with-pdf: + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_title: Learning Bash with Rocky + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + output_path: ../pdf/LearningBashWithRocky.it.pdf + verbose: false + +# Page tree +nav: + - learning_bash/00-toc.it.md + - learning_bash/01-first-script.it.md + - learning_bash/02-using-variables.it.md + - learning_bash/03-data-entry-and-manipulations.it.md + - learning_bash/04-check-your-knowledge.it.md + - learning_bash/05-tests.it.md + - learning_bash/06-conditionnal-structures.it.md + - learning_bash/07-loops.it.md + - learning_bash/08-check-your-knowledge.it.md + +copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/requirements.txt b/build_pdf/requirements.txt new file mode 100644 index 0000000000..43cd98ae40 --- /dev/null +++ b/build_pdf/requirements.txt @@ -0,0 +1,10 @@ +mkdocs +mkdocs-awesome-pages-plugin +mkdocs-git-revision-date-localized-plugin +mkdocs-localsearch +mkdocs-material +mkdocs-redirects +mkdocs-static-i18n +jieba +mkdocs-with-pdf +qrcode \ No newline at end of file diff --git a/docs/assets/rocky-linux-logo.svg b/docs/assets/rocky-linux-logo.svg new file mode 100644 index 0000000000..58f22104e3 --- /dev/null +++ b/docs/assets/rocky-linux-logo.svg @@ -0,0 +1,3 @@ + + + From 1c144981111cdbec682f7cdaa623d80ac91a12c1 Mon Sep 17 00:00:00 2001 From: sspencerwire Date: Sun, 21 May 2023 08:27:37 -0500 Subject: [PATCH 2/6] Update build_pdf/README.MD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Serge Croisé --- build_pdf/README.MD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_pdf/README.MD b/build_pdf/README.MD index 398175eb2c..4a71de86a9 100644 --- a/build_pdf/README.MD +++ b/build_pdf/README.MD @@ -2,7 +2,7 @@ ## Installation -Fist, fork this repo. +First, fork this repo. Next, please install the requirements: From ad602737afb59eca96f4e18cb40a44e55df6b307 Mon Sep 17 00:00:00 2001 From: sspencerwire Date: Sun, 21 May 2023 08:27:45 -0500 Subject: [PATCH 3/6] Update build_pdf/README.MD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Serge Croisé --- build_pdf/README.MD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_pdf/README.MD b/build_pdf/README.MD index 4a71de86a9..43bdb3dfae 100644 --- a/build_pdf/README.MD +++ b/build_pdf/README.MD @@ -17,7 +17,7 @@ cd build_pdf mkdocs build -f path_to_config_file.yml ``` -or launch the script bash to build everything: +or launch the bash script to build everything: ```bash bash build_all.sh From 141841db3b46ea9e13d7dfadcb035695aa4bed89 Mon Sep 17 00:00:00 2001 From: Antoine Le Morvan Date: Mon, 22 May 2023 15:05:52 +0200 Subject: [PATCH 4/6] feat: modular improvments --- build_pdf/admin_book/en.yml | 33 ++++++++ build_pdf/admin_book/it.yml | 33 ++++++++ build_pdf/ansible_book/en.yml | 31 ++++++++ build_pdf/ansible_book/es.yml | 31 ++++++++ build_pdf/ansible_book/it.yml | 31 ++++++++ build_pdf/bash_book/en.yml | 31 ++++++++ build_pdf/bash_book/it.yml | 31 ++++++++ build_pdf/build_admin_book_it.yml | 78 ------------------- build_pdf/build_all.sh | 37 +++++---- build_pdf/build_ansible_book.yml | 76 ------------------ build_pdf/build_ansible_book_es.yml | 76 ------------------ build_pdf/build_ansible_book_it.yml | 76 ------------------ .../{build_admin_book.yml => build_base.yml} | 31 ++------ build_pdf/build_bash_book.yml | 76 ------------------ build_pdf/build_bash_book_it.yml | 76 ------------------ 15 files changed, 250 insertions(+), 497 deletions(-) create mode 100644 build_pdf/admin_book/en.yml create mode 100644 build_pdf/admin_book/it.yml create mode 100644 build_pdf/ansible_book/en.yml create mode 100644 build_pdf/ansible_book/es.yml create mode 100644 build_pdf/ansible_book/it.yml create mode 100644 build_pdf/bash_book/en.yml create mode 100644 build_pdf/bash_book/it.yml delete mode 100644 build_pdf/build_admin_book_it.yml delete mode 100644 build_pdf/build_ansible_book.yml delete mode 100644 build_pdf/build_ansible_book_es.yml delete mode 100644 build_pdf/build_ansible_book_it.yml rename build_pdf/{build_admin_book.yml => build_base.yml} (58%) delete mode 100644 build_pdf/build_bash_book.yml delete mode 100644 build_pdf/build_bash_book_it.yml diff --git a/build_pdf/admin_book/en.yml b/build_pdf/admin_book/en.yml new file mode 100644 index 0000000000..b08ef20213 --- /dev/null +++ b/build_pdf/admin_book/en.yml @@ -0,0 +1,33 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Rocky Linux Admin Guide (English version) + output_path: ../../pdf/RockyLinuxAdminGuide.pdf + +# Customize your own book +nav: + - admin_guide/00-toc.md + - admin_guide/01-presentation.md + - admin_guide/03-commands.md + - admin_guide/04-advanced-commands.md + - admin_guide/05-vi.md + - admin_guide/06-users.md + - admin_guide/07-file-systems.md + - admin_guide/08-process.md + - admin_guide/09-backups.md + - admin_guide/10-boot.md + - admin_guide/11-tasks.md diff --git a/build_pdf/admin_book/it.yml b/build_pdf/admin_book/it.yml new file mode 100644 index 0000000000..b1fb8fd3c7 --- /dev/null +++ b/build_pdf/admin_book/it.yml @@ -0,0 +1,33 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Rocky Linux Admin Guide (Italian version) + output_path: ../../pdf/RockyLinuxAdminGuide.it.pdf + +# Customize your own book +nav: + - admin_guide/00-toc.it.md + - admin_guide/01-presentation.it.md + - admin_guide/03-commands.it.md + - admin_guide/04-advanced-commands.it.md + - admin_guide/05-vi.it.md + - admin_guide/06-users.it.md + - admin_guide/07-file-systems.it.md + - admin_guide/08-process.it.md + - admin_guide/09-backups.it.md + - admin_guide/10-boot.it.md + - admin_guide/11-tasks.it.md diff --git a/build_pdf/ansible_book/en.yml b/build_pdf/ansible_book/en.yml new file mode 100644 index 0000000000..a79e302dc1 --- /dev/null +++ b/build_pdf/ansible_book/en.yml @@ -0,0 +1,31 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Learning Ansible with Rocky (English version) + output_path: ../../pdf/LearningAnsibleWithRocky.pdf + +# Customize your own book +nav: + - learning_ansible/00-toc.md + - learning_ansible/01-basic.md + - learning_ansible/02-advanced.md + - learning_ansible/03-working-with-files.md + - learning_ansible/04-ansible-galaxy.md + - learning_ansible/05-deployments.md + - learning_ansible/06-large-scale-infrastructure.md + - learning_ansible/07-working-with-filters.md + - learning_ansible/08-management-server-optimizations.md diff --git a/build_pdf/ansible_book/es.yml b/build_pdf/ansible_book/es.yml new file mode 100644 index 0000000000..08fd9cd9c5 --- /dev/null +++ b/build_pdf/ansible_book/es.yml @@ -0,0 +1,31 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Learning Ansible with Rocky (Spanish version) + output_path: ../../pdf/LearningAnsibleWithRocky.es.pdf + +# Customize your own book +nav: + - learning_ansible/00-toc.es.md + - learning_ansible/01-basic.es.md + - learning_ansible/02-advanced.es.md + - learning_ansible/03-working-with-files.es.md + - learning_ansible/04-ansible-galaxy.es.md + - learning_ansible/05-deployments.es.md + - learning_ansible/06-large-scale-infrastructure.es.md + - learning_ansible/07-working-with-filters.es.md + - learning_ansible/08-management-server-optimizations.es.md diff --git a/build_pdf/ansible_book/it.yml b/build_pdf/ansible_book/it.yml new file mode 100644 index 0000000000..ed557ca8ae --- /dev/null +++ b/build_pdf/ansible_book/it.yml @@ -0,0 +1,31 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Learning Ansible with Rocky (Italian version) + output_path: ../../pdf/LearningAnsibleWithRocky.it.pdf + +# Customize your own book +nav: + - learning_ansible/00-toc.it.md + - learning_ansible/01-basic.it.md + - learning_ansible/02-advanced.it.md + - learning_ansible/03-working-with-files.it.md + - learning_ansible/04-ansible-galaxy.it.md + - learning_ansible/05-deployments.it.md + - learning_ansible/06-large-scale-infrastructure.it.md + - learning_ansible/07-working-with-filters.it.md + - learning_ansible/08-management-server-optimizations.it.md diff --git a/build_pdf/bash_book/en.yml b/build_pdf/bash_book/en.yml new file mode 100644 index 0000000000..4721413206 --- /dev/null +++ b/build_pdf/bash_book/en.yml @@ -0,0 +1,31 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Learning Bash with Rocky (English version) + output_path: ../../pdf/LearningBashWithRocky.pdf + +# Customize your own book +nav: + - learning_bash/00-toc.md + - learning_bash/01-first-script.md + - learning_bash/02-using-variables.md + - learning_bash/03-data-entry-and-manipulations.md + - learning_bash/04-check-your-knowledge.md + - learning_bash/05-tests.md + - learning_bash/06-conditionnal-structures.md + - learning_bash/07-loops.md + - learning_bash/08-check-your-knowledge.md diff --git a/build_pdf/bash_book/it.yml b/build_pdf/bash_book/it.yml new file mode 100644 index 0000000000..df86c8446e --- /dev/null +++ b/build_pdf/bash_book/it.yml @@ -0,0 +1,31 @@ +--- +INHERIT: ../build_base.yml + +# Do not modify this block +pdf-config: &pdf-config + author: Rocky Documentation Team + cover: true + cover_logo: ../assets/rocky-linux-logo.svg + cover_subtitle: A book from the Documentation Team + toc_level: 3 + ordered_chapter_level: 3 + verbose: false + +# You are free to configure here what you want +plugins: + - with-pdf: + <<: *pdf-config + cover_title: Learning Bash with Rocky (Italian version) + output_path: ../../pdf/LearningBashWithRocky.it.pdf + +# Customize your own book +nav: + - learning_bash/00-toc.it.md + - learning_bash/01-first-script.it.md + - learning_bash/02-using-variables.it.md + - learning_bash/03-data-entry-and-manipulations.it.md + - learning_bash/04-check-your-knowledge.it.md + - learning_bash/05-tests.it.md + - learning_bash/06-conditionnal-structures.it.md + - learning_bash/07-loops.it.md + - learning_bash/08-check-your-knowledge.it.md diff --git a/build_pdf/build_admin_book_it.yml b/build_pdf/build_admin_book_it.yml deleted file mode 100644 index ccdd0af06b..0000000000 --- a/build_pdf/build_admin_book_it.yml +++ /dev/null @@ -1,78 +0,0 @@ ---- -site_name: 'Documentation' -site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' - -theme: - name: material - font: - text: Red Hat Text - features: - - navigation.tabs - - navigation.tabs.sticky - - navigation.top - - search.suggest - logo: assets/logo.png - favicon: assets/logo.png - palette: - - scheme: default - media: "(prefers-color-scheme: light)" - toggle: - icon: material/weather-night - name: Switch to dark mode - primary: black - - scheme: slate - media: "(prefers-color-scheme: dark)" - toggle: - icon: material/weather-sunny - name: Switch to light mode - primary: black - -markdown_extensions: - - abbr - - attr_list - - admonition - - toc: - permalink: true - - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg - - pymdownx.highlight - - pymdownx.superfences - - pymdownx.keys - - pymdownx.tabbed - - pymdownx.details - - pymdownx.tasklist - - footnotes - - def_list - - meta - -plugins: - - awesome-pages - - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Rocky Linux Admin Guide - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/RockyLinuxAdminGuide.it.pdf - verbose: false - -# Page tree -nav: - - admin_guide/00-toc.it.md - - admin_guide/01-presentation.it.md - - admin_guide/03-commands.it.md - - admin_guide/04-advanced-commands.it.md - - admin_guide/05-vi.it.md - - admin_guide/06-users.it.md - - admin_guide/07-file-systems.it.md - - admin_guide/08-process.it.md - - admin_guide/09-backups.it.md - - admin_guide/10-boot.it.md - - admin_guide/11-tasks.it.md - -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_all.sh b/build_pdf/build_all.sh index a57ce6af72..e4945bdd1b 100644 --- a/build_pdf/build_all.sh +++ b/build_pdf/build_all.sh @@ -1,19 +1,26 @@ #!/bin/bash -config_files=( - build_admin_book - build_ansible_book - build_bash_book - build_admin_book_it - build_ansible_book_it - build_bash_book_it - build_ansible_book_es -) +# config_files=( +# admin_book/en +# ansible_book/build_ansible_book +# admin_book/build_admin_book_it +# bash_book/build_bash_book + +# ansible_book/build_ansible_book_it +# bash_book/build_bash_book_it +# ansible_book/build_ansible_book_es +# ) +SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" +cd $SCRIPTPATH -for config_file in "${config_files[@]}" +for book in admin_book ansible_book bash_book do - echo "Building $config_file" - echo "---------------------" - mkdocs build -f $config_file.yml - echo "" -done + for config_file in $(ls ${SCRIPTPATH}/${book}/*.yml) + do + echo "Building $config_file" + echo "---------------------" + mkdocs build -f $config_file + echo "" + done + rm -Rf ${SCRIPTPATH}/${book}/site/ +done \ No newline at end of file diff --git a/build_pdf/build_ansible_book.yml b/build_pdf/build_ansible_book.yml deleted file mode 100644 index b86be2ea27..0000000000 --- a/build_pdf/build_ansible_book.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -site_name: 'Documentation' -site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' - -theme: - name: material - font: - text: Red Hat Text - features: - - navigation.tabs - - navigation.tabs.sticky - - navigation.top - - search.suggest - logo: assets/logo.png - favicon: assets/logo.png - palette: - - scheme: default - media: "(prefers-color-scheme: light)" - toggle: - icon: material/weather-night - name: Switch to dark mode - primary: black - - scheme: slate - media: "(prefers-color-scheme: dark)" - toggle: - icon: material/weather-sunny - name: Switch to light mode - primary: black - -markdown_extensions: - - abbr - - attr_list - - admonition - - toc: - permalink: true - - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg - - pymdownx.highlight - - pymdownx.superfences - - pymdownx.keys - - pymdownx.tabbed - - pymdownx.details - - pymdownx.tasklist - - footnotes - - def_list - - meta - -plugins: - - awesome-pages - - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Learning Ansible with Rocky - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/LearningAnsibleWithRocky.pdf - verbose: false - -# Page tree -nav: - - learning_ansible/00-toc.md - - learning_ansible/01-basic.md - - learning_ansible/02-advanced.md - - learning_ansible/03-working-with-files.md - - learning_ansible/04-ansible-galaxy.md - - learning_ansible/05-deployments.md - - learning_ansible/06-large-scale-infrastructure.md - - learning_ansible/07-working-with-filters.md - - learning_ansible/08-management-server-optimizations.md - -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_ansible_book_es.yml b/build_pdf/build_ansible_book_es.yml deleted file mode 100644 index 9f50d63c6c..0000000000 --- a/build_pdf/build_ansible_book_es.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -site_name: 'Documentation' -site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' - -theme: - name: material - font: - text: Red Hat Text - features: - - navigation.tabs - - navigation.tabs.sticky - - navigation.top - - search.suggest - logo: assets/logo.png - favicon: assets/logo.png - palette: - - scheme: default - media: "(prefers-color-scheme: light)" - toggle: - icon: material/weather-night - name: Switch to dark mode - primary: black - - scheme: slate - media: "(prefers-color-scheme: dark)" - toggle: - icon: material/weather-sunny - name: Switch to light mode - primary: black - -markdown_extensions: - - abbr - - attr_list - - admonition - - toc: - permalink: true - - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg - - pymdownx.highlight - - pymdownx.superfences - - pymdownx.keys - - pymdownx.tabbed - - pymdownx.details - - pymdownx.tasklist - - footnotes - - def_list - - meta - -plugins: - - awesome-pages - - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Learning Ansible with Rocky - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/LearningAnsibleWithRocky.es.pdf - verbose: false - -# Page tree -nav: - - learning_ansible/00-toc.es.md - - learning_ansible/01-basic.es.md - - learning_ansible/02-advanced.es.md - - learning_ansible/03-working-with-files.es.md - - learning_ansible/04-ansible-galaxy.es.md - - learning_ansible/05-deployments.es.md - - learning_ansible/06-large-scale-infrastructure.es.md - - learning_ansible/07-working-with-filters.es.md - - learning_ansible/08-management-server-optimizations.es.md - -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_ansible_book_it.yml b/build_pdf/build_ansible_book_it.yml deleted file mode 100644 index 176fecdfad..0000000000 --- a/build_pdf/build_ansible_book_it.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -site_name: 'Documentation' -site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' - -theme: - name: material - font: - text: Red Hat Text - features: - - navigation.tabs - - navigation.tabs.sticky - - navigation.top - - search.suggest - logo: assets/logo.png - favicon: assets/logo.png - palette: - - scheme: default - media: "(prefers-color-scheme: light)" - toggle: - icon: material/weather-night - name: Switch to dark mode - primary: black - - scheme: slate - media: "(prefers-color-scheme: dark)" - toggle: - icon: material/weather-sunny - name: Switch to light mode - primary: black - -markdown_extensions: - - abbr - - attr_list - - admonition - - toc: - permalink: true - - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg - - pymdownx.highlight - - pymdownx.superfences - - pymdownx.keys - - pymdownx.tabbed - - pymdownx.details - - pymdownx.tasklist - - footnotes - - def_list - - meta - -plugins: - - awesome-pages - - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Learning Ansible with Rocky - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/LearningAnsibleWithRocky.it.pdf - verbose: false - -# Page tree -nav: - - learning_ansible/00-toc.it.md - - learning_ansible/01-basic.it.md - - learning_ansible/02-advanced.it.md - - learning_ansible/03-working-with-files.it.md - - learning_ansible/04-ansible-galaxy.it.md - - learning_ansible/05-deployments.it.md - - learning_ansible/06-large-scale-infrastructure.it.md - - learning_ansible/07-working-with-filters.it.md - - learning_ansible/08-management-server-optimizations.it.md - -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_admin_book.yml b/build_pdf/build_base.yml similarity index 58% rename from build_pdf/build_admin_book.yml rename to build_pdf/build_base.yml index 94a3704720..96980c1dcb 100644 --- a/build_pdf/build_admin_book.yml +++ b/build_pdf/build_base.yml @@ -1,7 +1,7 @@ --- site_name: 'Documentation' site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' +docs_dir: '../../docs/books' theme: name: material @@ -50,29 +50,12 @@ markdown_extensions: plugins: - awesome-pages - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Rocky Linux Admin Guide - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/RockyLinuxAdminGuide.pdf - verbose: false # Page tree -nav: - - admin_guide/00-toc.md - - admin_guide/01-presentation.md - - admin_guide/03-commands.md - - admin_guide/04-advanced-commands.md - - admin_guide/05-vi.md - - admin_guide/06-users.md - - admin_guide/07-file-systems.md - - admin_guide/08-process.md - - admin_guide/09-backups.md - - admin_guide/10-boot.md - - admin_guide/11-tasks.md +# nav: +# - learning_ansible/00-toc.md +# - learning_ansible/01-basic.md +# - learning_ansible/02-advanced.md +# ... -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file +copyright: Copyright © 2023 The Rocky Enterprise Software Foundation diff --git a/build_pdf/build_bash_book.yml b/build_pdf/build_bash_book.yml deleted file mode 100644 index ac30ac717a..0000000000 --- a/build_pdf/build_bash_book.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -site_name: 'Documentation' -site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' - -theme: - name: material - font: - text: Red Hat Text - features: - - navigation.tabs - - navigation.tabs.sticky - - navigation.top - - search.suggest - logo: assets/logo.png - favicon: assets/logo.png - palette: - - scheme: default - media: "(prefers-color-scheme: light)" - toggle: - icon: material/weather-night - name: Switch to dark mode - primary: black - - scheme: slate - media: "(prefers-color-scheme: dark)" - toggle: - icon: material/weather-sunny - name: Switch to light mode - primary: black - -markdown_extensions: - - abbr - - attr_list - - admonition - - toc: - permalink: true - - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg - - pymdownx.highlight - - pymdownx.superfences - - pymdownx.keys - - pymdownx.tabbed - - pymdownx.details - - pymdownx.tasklist - - footnotes - - def_list - - meta - -plugins: - - awesome-pages - - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Learning Bash with Rocky - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/LearningBashWithRocky.pdf - verbose: false - -# Page tree -nav: - - learning_bash/00-toc.md - - learning_bash/01-first-script.md - - learning_bash/02-using-variables.md - - learning_bash/03-data-entry-and-manipulations.md - - learning_bash/04-check-your-knowledge.md - - learning_bash/05-tests.md - - learning_bash/06-conditionnal-structures.md - - learning_bash/07-loops.md - - learning_bash/08-check-your-knowledge.md - -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file diff --git a/build_pdf/build_bash_book_it.yml b/build_pdf/build_bash_book_it.yml deleted file mode 100644 index 762288211f..0000000000 --- a/build_pdf/build_bash_book_it.yml +++ /dev/null @@ -1,76 +0,0 @@ ---- -site_name: 'Documentation' -site_url: 'https://docs.rockylinux.org' -docs_dir: '../docs/books' - -theme: - name: material - font: - text: Red Hat Text - features: - - navigation.tabs - - navigation.tabs.sticky - - navigation.top - - search.suggest - logo: assets/logo.png - favicon: assets/logo.png - palette: - - scheme: default - media: "(prefers-color-scheme: light)" - toggle: - icon: material/weather-night - name: Switch to dark mode - primary: black - - scheme: slate - media: "(prefers-color-scheme: dark)" - toggle: - icon: material/weather-sunny - name: Switch to light mode - primary: black - -markdown_extensions: - - abbr - - attr_list - - admonition - - toc: - permalink: true - - pymdownx.emoji: - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg - - pymdownx.highlight - - pymdownx.superfences - - pymdownx.keys - - pymdownx.tabbed - - pymdownx.details - - pymdownx.tasklist - - footnotes - - def_list - - meta - -plugins: - - awesome-pages - - tags - - with-pdf: - author: Rocky Documentation Team - cover: true - cover_logo: ../assets/rocky-linux-logo.svg - cover_title: Learning Bash with Rocky - cover_subtitle: A book from the Documentation Team - toc_level: 3 - ordered_chapter_level: 3 - output_path: ../pdf/LearningBashWithRocky.it.pdf - verbose: false - -# Page tree -nav: - - learning_bash/00-toc.it.md - - learning_bash/01-first-script.it.md - - learning_bash/02-using-variables.it.md - - learning_bash/03-data-entry-and-manipulations.it.md - - learning_bash/04-check-your-knowledge.it.md - - learning_bash/05-tests.it.md - - learning_bash/06-conditionnal-structures.it.md - - learning_bash/07-loops.it.md - - learning_bash/08-check-your-knowledge.it.md - -copyright: Copyright © 2021 The Rocky Enterprise Software Foundation \ No newline at end of file From 2cccfd126dc38f670995114e3fc62abd7d4edd1e Mon Sep 17 00:00:00 2001 From: lumarel Date: Wed, 24 May 2023 22:19:15 +0200 Subject: [PATCH 5/6] Make script executable --- build_pdf/build_all.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 build_pdf/build_all.sh diff --git a/build_pdf/build_all.sh b/build_pdf/build_all.sh old mode 100644 new mode 100755 From 2b1b11809349973b8258c182f1ac3c1a049d72db Mon Sep 17 00:00:00 2001 From: lumarel Date: Wed, 24 May 2023 22:19:32 +0200 Subject: [PATCH 6/6] Add build pipeline --- .github/workflows/generate-pdfs.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/generate-pdfs.yml diff --git a/.github/workflows/generate-pdfs.yml b/.github/workflows/generate-pdfs.yml new file mode 100644 index 0000000000..e227943bb7 --- /dev/null +++ b/.github/workflows/generate-pdfs.yml @@ -0,0 +1,35 @@ +--- +name: Mkdocs build PDFs + +on: + push: + branches: + - main + schedule: + - cron: '0 12 1 * *' + workflow_dispatch: + +jobs: + build_pdfs: + runs-on: ubuntu-latest + name: Build PDFs + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r ${PWD}/build_pdf/requirements.txt + + - name: Build all + run: ${PWD}/build_pdf/build_all.sh + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: pdfs + path: build_pdf/pdf/*