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

build and publish the user guide #12

Closed
3 tasks done
orbeckst opened this issue Sep 25, 2019 · 11 comments · Fixed by #13
Closed
3 tasks done

build and publish the user guide #12

orbeckst opened this issue Sep 25, 2019 · 11 comments · Fixed by #13
Assignees

Comments

@orbeckst
Copy link
Member

orbeckst commented Sep 25, 2019

Add travis CI to automatically build the user guide.

See MDAnalysisTutorial/.travis.yml.

The user guide should then show up as https://www.mdanalysis.org/UserGuide.

@orbeckst
Copy link
Member Author

https://travis-ci.com/MDAnalysis/UserGuide exists and is ready (I think...)

@orbeckst
Copy link
Member Author

Notes on deploying docs and token: https://docs.travis-ci.com/user/deployment/pages/

@orbeckst
Copy link
Member Author

I encrypted the access token with

travis encrypt GH_TOKEN=super-secret-gobbledy-gook

and got

  secure: "b+s7g/GarZTFQjnLuC4gRFuf/V+FNu2ml+Sdo9qQgVZdHFC2sJPNWqszd2KssRplpwe5d/zhPAj0tiQWreNRt0VdPCJpImeEp7hfxLtHsMrGfBGDFuBKi+XK6LqNnCqYeneWE3Q6Gb3EFqCwYEw75Tph1HIkc0jj4h2CvX+SYzeUopcj2HiZXEJhcUPQFDnawHEz1WkZcmK4TMumesE4+OOq+sDg0aWpVzo0hA0Pu0h9FTipeExKI9WngkCdgWmuTWsTyqOfhyXQKcs0Q+X1ycmbHidic2SWc1Tsyg0jdWvdAPN2KGcS4J9EdhtTaJARYdizVTlR8SS6VjbDPIDSHxXli4dSFGdVMSADqu6jCeDfcyTpjc5/iB1g4k77Hmmxehj4n+63fg7Ja+cFGPYu/337ZVQAKU9C7N/dFinZaBWFkEA9VbSHJogDi5v1wtwE1MoLZKNn73zM4OlnWm8bJNk7PKgQ/YPM+Fmp/Bb5K8JLH6aF1jSReXvYTp7PZaZwJ/bW0xdUGCOAW3Z9ieBVJAPSwzPe1GXjXAzUUbwXMxEiITDFO4VigkViDSSbAnOoMeR0l7tFMwsNgB7nrDWPvHufkc2dQOs6LmOVGA6v8rK/xxrj5eau947w0m6bNq3qWGxUwjm//hoWcNJqIYWnFPKwf7ELtipYm3ifywPidKc="

@lilyminium add the "secure: ..." line to .travis.yml.

It will expand to GH_TOKEN=... so that the deploy script in the travis config can use it to push to the gh-pages branch.

@orbeckst
Copy link
Member Author

Note that the .travis.yml file installs the sphinx-sitemap package. You should import it in your config file so that everything is indexed for the algolia search. See MDAnalysis/MDAnalysis.github.io#78

@lilyminium
Copy link
Member

Thanks @orbeckst . I'll see if I can get the build to stop failing soon...

@orbeckst
Copy link
Member Author

orbeckst commented Sep 26, 2019

I think you have to also install pandoc. This is the error:

Notebook error:
PandocMissing in quickstart.ipynb:
Pandoc wasn't found.
Please check that pandoc is installed:
http://pandoc.org/installing.html

You can either switch to a conda installation (takes longer but almost certainly has all packages) or install pandoc as an Ubuntu package (see Travis installing deps) and any other Python packages via pip.

Btw, might be useful to add the Travis build status badge to the README for quick link to the builds.

@orbeckst
Copy link
Member Author

Btw, I am not 100% sure if the GH_TOKEN is working at the moment because it does not show up as a proper export GH_TOKEN=[secure] in the log. Instead it looks like export RANDOM_STRING_WHICH_IS_LUCKILY_NOT_THE_TOKEN=[secret]. I might have to encrypt with a newer version of the travis tool.

Just in case you get it to working but the push fails.

@lilyminium
Copy link
Member

Thanks! Unfortunately that does seem to have happened.

$ rvm $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl
Successfully installed dpl-1.10.13
1 gem installed
invalid option "--github_token="
failed to deploy

@orbeckst
Copy link
Member Author

I’ll look into the token issue.

@orbeckst
Copy link
Member Author

https://www.mdanalysis.org/UserGuide/ – yay !

I needed to

travis login --pro
travis encrypt --pro "GH_TOKEN='[secret]'"

because we are on travis-ci.com ... just needed to read their docs properly!

@orbeckst
Copy link
Member Author

Do you want to email the new url to the list and ask for feedback?

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 a pull request may close this issue.

2 participants