Skip to content

[Doc] Generate document depending on main repo during sync #18014

Closed

Description

@tisonkun

Search before asking

  • I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?

Currently, we build swagger files and config references on the site build stage. It prevents developers from previewing the website smoothly.

What is your suggestion?

I suggest we generate swagger files and config references during the sync stage and put generated files under the static folder related to the root path of docusaurus framework. So that we can properly preview the website fully.

Subtasks

Any reference?

Related files:

  • site2/tools/build-site.sh
  • site2/tools/docker-build-site.sh
  • site2/tools/pulsar-admin-doc-gen.sh
  • site2/tools/pulsar-client-doc-gen.sh
  • site2/tools/pulsar-perf-doc-gen.sh
  • site2/tools/pulsar-doc-gen.sh
  • site2/tools/pulsar-config-doc-gen.sh
  • site2/website-next/scripts/split-swagger-by-version.js
  • .github/workflows/ci-pulsar-website-docs-sync.yaml
  • .github/workflows/ci-pulsar-website-next-build.yaml

cc @urfreespace @michaeljmarshall @Anonymitaet @SignorMercurio

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    doc-required
    on Oct 12, 2022
  2. tisonkun commented on Oct 12, 2022

    @tisonkun
    MemberAuthor

    If we agree on the direction, we can achieve it in multiple subtasks concurrently; for example:

    • those for swagger files;
    • those for config files;
    • those for release data;
    • ...
  3. github-actions commented on Nov 12, 2022

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

  4. visortelle commented on Dec 6, 2022

    @visortelle
    Member

    This issue will finally remove the annoying progress bar? 🙏

    Screenshot 2022-12-06 at 12 16 28 PM

  5. tisonkun commented on Dec 14, 2022

    @tisonkun
    MemberAuthor

    @visortelle It's about how we display the REST API. I think it should have a separate issue to investigate how we generate this page from the swagger files and the ReDoc framework.

    Related files:

    This issue is to avoid holding same files here and there so that developers can find it clumsy to update content.

  6. tisonkun commented on Dec 14, 2022

    @tisonkun
    MemberAuthor

    Closed as all subtasks done.

    Now we have only the docs (version docs) and a few JSON files to sync, no prebuilt content in main repo nor heavy content generation logic in the build stage anymore.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions