Skip to content

[python + travisCI] Automatically deploy and generate documentation #58

Open

Description

@yochannah

HTML documentation for our library can be generated using the pydoc -w command.

It would be nice to use travis or github actions to automatically generate docs and deploy them to the gh-pages branch of this repo.

This should only happen for the master branch.

if you want to pick up this task

  1. Take a look at the InterMine contributing guidelines
  2. Comment on this issue stating that you intend to work on the task
  3. When you're ready, add your work to the repo and create a pull request.

What to do if you need help

Mention @yochannah, tweet @yoyehudi, pop by to say hi on chat or if needed email [email protected]. Don't forget we're usually only available during uk office hours and will not be able to respond at other times :)

Activity

  1. biswajitpatra commented on Oct 22, 2019

    @biswajitpatra

    can i take this up?

  2. yochannah commented on Oct 22, 2019

    @yochannah
    MemberAuthor

    @biswajitpatra Go for it! 🚀

  3. yochannah commented on Dec 9, 2019

    @yochannah
    MemberAuthor

    Hey @biswajitpatra - did you ever get the chance to look at this? :)

  4. anmol27katyani commented on Jan 16, 2020

    @anmol27katyani

    Hello @yochannah , I just saw this issue and I looked up for how I can approach, and I found https://circleci.com/blog/deploying-documentation-to-github-pages-with-continuous-integration/
    I will be taking help from the mentioned webpage to see how it is done. I know this is for Circleci and Intermine is using Travis at the moment, I would like to take this up and fix this.

  5. yochannah commented on Jan 22, 2020

    @yochannah
    MemberAuthor

    Hey @anmol27katyani ! That sounds fine, but one question- is Circle free for open source projects?

  6. edeediong commented on Mar 8, 2020

    @edeediong

    @yochannah I'd love to pick up this issue.

    Observations

    1. I have a few questions from my observations. I noticed running a pydoc -w intermine just creates the intermine.html file for the folder. If you click any of the hyperlinks it throws an error because the pydoc didn't create HTML for each of the Python files in the folder. Shouldn't it run create HTML files for everything or am I running the command wrongly?
    2. To auto-generate docs, when should the travis build run? Is it on every PR or Merge or when there's an update to the codebase? I'm still trying to wrap my head around when it should be run.
  7. yochannah commented on Mar 13, 2020

    @yochannah
    MemberAuthor

    @edeediong please go ahead!

    1. Check out the readme - we have a slightly different command, pydoc intermine.query.Query that does what we need.
    2. For travis - I think if you set up scripting so it can run the build every time, every PR/merge would be perfect. every change to master I think.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

hacktoberfestcontributors incredibly welcome!

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions