Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate gh-pages documentation once new commits are pushed to master #1106

Closed

Conversation

foursixnine
Copy link
Member

With this PR we get the documents being built and auto published by travis on the gh-pages branch, which will automatically regenerate the website http://open.qa

The website will look like this:
screenshot from 2016-12-23 20-36-04

Upon generation there's a single PDF and HTML file with all the content from the docs/ directory and automatically linked to /docs/current.pdf or /docs/index.html.

There is also documentation generated from testapi.pm (for now, more to come by using auto-generated pod :) sometime in the future)

The file .openqa-travis.enc contains a deploy key generated using the following procedure with a deploy key for foursixnine/openQA (and i hope that gh's security team and travis are very keen on security :) because of $reasons)

This means: Somebody will need to create a deploy-key/ssh-key replace .openqa-travis.enc with the newly created ssh-private-key and then add the ssh public key on os-autoinst/openQA settings as a deploy key

The generate-documentation script can be used also standalone, but requires that the user has asciidoctor installed (at least, the pdf generation will fail if asciidoctor-pdf is not installed, see the .travis.yml for reference)

As the testapi will not change that often (And honestly makes no sense), the Pod documentation will be generated only under a travis environment (therefore, the hardcoded cpanm --install ), however, the script can be called standalone too... provided that there's a directory named src/ and the .pm files are there... with their inline pod present.

This PR requires #1105

foursixnine and others added 4 commits December 23, 2016 19:59
This script will allow the generation of the documentation, right now
is a quick and dirty bash script. It generates a .html and a file with
the date (YYYMMDD) and the short name for the commit as filename.
This is the start for travis to become a bit more useful, it will now be
able to commit to the repository (A deploy key should be added in the
os-autoinst/openQA repository)

Deploy key is contained in .openqa-travis.enc

At this point is not fully working yet.
With this commit, documentation will be generated after the build is complete

From here, the docs present in openqa/docs and (in the future os-autoinst/docs) will be
generated in a web-browseable format.
@foursixnine
Copy link
Member Author

Looks like travis builds will fail until the key is added :)

@coolo
Copy link
Contributor

coolo commented Jan 2, 2017

there is more work to do -> #1110

@coolo coolo closed this Jan 2, 2017
@foursixnine foursixnine deleted the doc/generator_script branch October 30, 2018 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants