Skip to content

Publish SDK docs on gh_pages branch #212

Closed

Description

@lance
No description provided.

Activity

  1. self-assigned this
    on Jun 8, 2020
  2. lholmquist commented on Jun 8, 2020

    @lholmquist
    Contributor

    what about using a docs/ on the master branch? This could be generated during a release script, so things would stay in-sync and might be easier to maintain?

  3. lance commented on Jun 8, 2020

    @lance
    MemberAuthor

    That's how it has been, but @grant pushed back on that for some reason.

  4. lholmquist commented on Jun 8, 2020

    @lholmquist
    Contributor

    I understand that it's a common thing for repo's to use gh_pages, but it seems much more streamlined if the docs lived with the code, at least from a users perspective.

    If you are going to be having typescript types in the main branch, then why not docs?

  5. lance commented on Jun 8, 2020

    @lance
    MemberAuthor

    It's also pretty common to have generated docs in /docs on master. It's the default option in the repo settings. I'm not sure what the concern is tbh - I just thought it was a minor thing to argue about. I want to set up a GH Action that generates the docs with each push to master. It should be pretty straightforward using something like https://github.com/crazy-max/ghaction-github-pages

  6. grant commented on Jun 8, 2020

    @grant
    Member

    It's common in git to not push generated files in master. Putting generated files makes searching worse, docs out of date, etc. For example, CSS files and font files shouldn't be in this repo.

    Most top npm modules don't have generated docs, markdown is fine.

    If you are going to be having typescript types in the main branch, then why not docs?

    There are no typescript types files, assuming you're referring to .d.ts files. Only source code.

  7. lance commented on Jun 8, 2020

    @lance
    MemberAuthor

    Re: generated files... unless you are volunteering to write the API documentation, I think we're going to go ahead and generate the docs

  8. grant commented on Jun 8, 2020

    @grant
    Member

    Generating docs on gh_pages SGTM as before.
    Not sure what @lholmquist is suggesting.

  9. lholmquist commented on Jun 8, 2020

    @lholmquist
    Contributor

    i'm suggesting that you just use "docs/" on the main branch.

    docs out of date

    The docs only really get updated during a version release, and there already is a "release" script in the package.json, it is pretty easy to just add the generate_docs script to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

module/docsModule documentation changes

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions