Skip to content

github links, custom commit/tags support. #801

Closed
@bd82

Description

@bd82

Example:

documentation build -f html -o docs  --github v0.12.39

A link to the sources would now look like: (using a random repo as an example)
https://github.com/gatsbyjs/gatsby/blob/v0.12.39/lib/isomorphic/create-routes.js#L7
instead of something like:
https://github.com/gatsbyjs/gatsby/blob/cefdefc8f330957f8a340e0f5cf026dc2b9ec14f/lib/isomorphic/create-routes.js#L7

Rational

I don't much care about html docs for my master branch.
Instead I would prefer that the html docs posted on my gh-pages to link
to the latest released tag's docs.

I don't expect documentation.js to support my specific work flow.
However by supporting a generic argument for the tag/commit id such a flow and
possibly other custom ones could be enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions