Visitar URL original
Automate CLI / func docs generation · Issue #5285 · knative/docs · GitHub
Skip to content

Automate CLI / func docs generation #5285

Description

@abrennan89

Describe the change you'd like to see
The options for kn and func CLI commands are constantly being expanded and updated.
It is not reasonable for docs to be manually updated frequently enough to keep up with the changes.
I would like to see folks on the eng team provide some method of implementation for auto-generating docs reference pages for the CLI tools that can be published on the website.

Additional context
Previously discussed with @rhuss for kn and with @lance for func implementation after KubeCon (Oct 2022).

Activity

  1. moved this to In design in Docs WG Roadmapon Oct 19, 2022
  2. moved this from In design to Ready to work in Docs WG Roadmapon Oct 19, 2022
  3. psschwei commented on Oct 19, 2022

    @psschwei
    Member

    Also some discussion in #4430

  4. abrennan89 commented on Oct 19, 2022

    @abrennan89
    ContributorAuthor

    Thanks @psschwei - it looks like some work was done on this but the previous issue was marked closed without it being really implemented; any idea why?

  5. psschwei commented on Oct 19, 2022

    @psschwei
    Member

    Looks we decided on a WG call to just go with a link to the client repo. I vaguely recall running into some issues trying to automate moving the docs over here, but don't remember exactly what they were.

  6. abrennan89 commented on Oct 25, 2022

    @abrennan89
    ContributorAuthor

    I think the biggest issue with just having a link is that it doesn't allow us to retain different versions of the docs for different versions of kn or func, which is something that I'd like to see, but maybe adds additional complications here since I don't think the versions were considered in previous discussions.

  7. lance commented on Oct 25, 2022

    @lance
    Contributor

    I do like being able to refer to documentation by version, but using github doesn't prevent that. The docs are published with each change on main and with release branches, we can point to the docs per release by just linking to the branch. E.g. https://github.com/knative/func/blob/release-1.7/docs/reference/func.md for 1.7

  8. abrennan89 commented on Oct 25, 2022

    @abrennan89
    ContributorAuthor

    @lance presumably we'd have to have some sort of script in the docs then to keep that link updated for each release though, or manually update it (IMO not an option, we already have issues with maintaining stuff like this accurately).

  9. abrennan89 commented on Oct 25, 2022

    @abrennan89
    ContributorAuthor

    The other issue IMHO is that using Github for docs isn't a very nice UX experience, but I guess that's not as urgent, especially while our sample docs still live there. I'd just prefer if long term we had a view to introduce more consistency in the docs experience, e.g. API ref docs are generated and included in the site, so why can't CLI, samples, etc be the same?

  10. removed their assignment
    on Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions