Skip to content

Commit

Permalink
Generate documentation automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi committed Sep 20, 2023
1 parent 970f298 commit ef11337
Show file tree
Hide file tree
Showing 63 changed files with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,11 @@ name: Documentation generation CI

on:
push:
branches-ignore:
- 'gh-pages'
tags: []

pull_request:
branches-ignore:
- 'gh-pages'
branches: [ master ]

jobs:
build:
name: Generate documentation
runs-on: ubuntu-latest

steps:
Expand All @@ -24,25 +19,27 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y dblatex
sudo apt-get install -y dblatex dbtoepub xsltproc
# generate the documentation files
- name: Generate PDF documentation
- name: Generate documentation
run: |
cd doc
cd docs
dblatex -s texstyle.sty mobilitydb-workshop.xml
dbtoepub -o mobilitydb-workshop.epub mobilitydb-workshop.xml
xsltproc --stringparam html.stylesheet "docbook.css" --stringparam chunker.output.encoding UTF-8 --xinclude -o index.html /usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl mobilitydb-workshop.xml
# store the documentation files
- name: Upload Output Directory
uses: actions/upload-artifact@v2
with:
name: doc-files
path: doc
path: docs
retention-days: 1


copy:
name: Build
name: Deploy documentation
runs-on: ubuntu-latest
needs: build

Expand All @@ -57,13 +54,16 @@ jobs:
uses: actions/download-artifact@v2
with:
name: doc-files
path: doc
path: docs

# add, commit and push to gh-pages
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
message: 'Update docs'
branch: gh-pages
add: '["doc/mobilitydb-workshop.pdf"]'
add: '["docs/mobilitydb-workshop.pdf",
"docs/mobilitydb-workshop.epub",
"docs/docbook.css", "docs/images/*",
"docs/*.html"]'

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ef11337

Please sign in to comment.