Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

d3: regen 8.6 API docs #4805

Conversation

pepopowitz
Copy link
Collaborator

@pepopowitz pepopowitz commented Dec 20, 2024

Description

Part of #4799.

  • Rewrites the API generation logic to support non-next versions of docs
  • Regenerates API docs for vCurrent
    • Operate
    • Tasklist
    • Camunda
    • Admin SM
    • Zeebe

When should this change go live?

  • This is a bug fix, security concern, or something that needs urgent release support.
  • This is already available but undocumented and should be released within a week.
  • This on a specific schedule and the assignee will coordinate a release with the DevEx team. (apply hold label or convert to draft PR)
  • This is part of a scheduled alpha or minor. (apply alpha or minor label)
  • There is no urgency with this change and can be released at any time.

PR Checklist

  • My changes are for an already released minor and are in /versioned_docs directory.
  • My changes are for the next minor and are in /docs directory (aka /next/).

Copy link
Contributor

github-actions bot commented Dec 20, 2024

👋 🤖 🤔 Hello, @pepopowitz! Did you make your changes in all the right places?

These files were changed only in docs/. You might want to duplicate these changes in versioned_docs/version-8.6/.

  • docs/apis-tools/administration-sm-api/specifications/versions.json
  • docs/apis-tools/camunda-api-rest/specifications/versions.json
  • docs/apis-tools/operate-api/specifications/versions.json
  • docs/apis-tools/tasklist-api-rest/specifications/versions.json
These files were changed only in versioned_docs/version-8.6/. You might want to duplicate these changes in docs/.
  • versioned_docs/version-8.6/apis-tools/administration-sm-api/specifications/get-clusters.api.mdx
  • versioned_docs/version-8.6/apis-tools/administration-sm-api/specifications/get-usage-metrics.api.mdx
  • versioned_docs/version-8.6/apis-tools/administration-sm-api/specifications/sidebar.js
  • versioned_docs/version-8.6/apis-tools/administration-sm-api/specifications/sidebar.ts
  • versioned_docs/version-8.6/apis-tools/administration-sm-api/specifications/sm-administration-api.info.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/activate-jobs.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/assign-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/broadcast-signal.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/camunda-8-rest-api.info.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/cancel-process-instance.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/complete-job.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/complete-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/correlate-a-message.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/create-document-link-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/create-process-instance.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/delete-document-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/delete-resource.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/deploy-resources.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/download-document-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/evaluate-decision.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/fail-job.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/find-all-users.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/get-cluster-topology.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/get-decision-definition-xml-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/get-incident-by-key-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/get-status-of-camunda-license.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/migrate-process-instance.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/modify-process-instance.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/pin-internal-clock-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/publish-a-message.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-decision-definitions-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-decision-instances-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-decision-requirements-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-flow-node-instances-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-incidents-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-process-instances-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/query-user-tasks-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/report-error-for-job.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/reset-internal-clock-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/resolve-incident.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/sidebar.js
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/sidebar.ts
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/unassign-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/update-a-job.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/update-element-instance-variables.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/update-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/camunda-api-rest/specifications/upload-document-alpha.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-id.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key-1.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key-2.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key-3.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key-4.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key-5.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key-6.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/by-key.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/delete.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/get-statistics.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/operate-public-api.info.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-1.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-2.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-3.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-4.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-5.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-6.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search-7.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/search.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/sequence-flows-by-key.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/sidebar.js
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/sidebar.ts
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/xml-by-key-1.api.mdx
  • versioned_docs/version-8.6/apis-tools/operate-api/specifications/xml-by-key.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/assign-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/complete-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/get-form.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/get-task-by-id.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/get-variable-by-id.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/save-draft-task-variables.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/search-task-variables.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/search-tasks.api.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/sidebar.js
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/sidebar.ts
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/tasklist-rest-api.info.mdx
  • versioned_docs/version-8.6/apis-tools/tasklist-api-rest/specifications/unassign-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/assign-a-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/complete-a-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/get-cluster-topology.api.mdx
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/sidebar.js
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/sidebar.ts
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/unassign-a-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/update-a-user-task.api.mdx
  • versioned_docs/version-8.6/apis-tools/zeebe-api-rest/specifications/zeebe-rest-api.info.mdx

You may have done this intentionally, but we wanted to point it out in case you didn't. You can read more about the versioning within our docs in our documentation guidelines.

@pepopowitz pepopowitz requested a review from akeller December 20, 2024 22:05
@pepopowitz
Copy link
Collaborator Author

Merging this into the docusaurus 3 branch. All 8.6 api docs have been re-generated, and there is now infrastructure to generate any back-version of API docs!

Next I'll be doing exactly that, working my way backwards through the releases/APIs.

@pepopowitz pepopowitz merged commit 8d17237 into pepopowitz/3736-docusaurus-lets-gooooo Dec 20, 2024
7 of 8 checks passed
@pepopowitz pepopowitz deleted the pepopowitz/3736-docusaurus/regen-vcurrent-apis branch December 20, 2024 22:07
@pepopowitz pepopowitz mentioned this pull request Dec 20, 2024
34 tasks
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All generation strategies are re-written to take configuration passed in, so that we can use the docusaurus configuration directly instead of duplicating in these files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specs were pulled in from the last version prior to the 8.6 launch, and placed in a version-8.6 folder. As I work backwards through these versions, I'll be able to add each APIs spec for each version side by side.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file has the bulk of the changes for the generation process, to accommodate back-versions.

Luckily the plugin we're using already has support for back-versions; we just need to modify how we're calling it, based on the commands entered into the console.


// Load the API configs from the docusaurus.config.js file.
function loadAPIConfigs() {
const config = require("../docusaurus.config");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything we were using in the individual generation strategies is already in the docusaurus config!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These versions.json files are artifacts of the generator plugin. I don't believe they get used at all, but I left them because they seem harmless, and I wanted to modify the output of the generator as little as possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another unused artifact of the generators. Sidebars in numbered versions only support one large JSON file for the entire tree; this typescript file would never be used by docusaurus.

It could however be used by whomever re-generates, to either spot-check that the sidebars didn't change, or if they did change for some reason, these could mostly be copy/pasted into the top-level sidebars file to accommodate the changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hooray for valid markdown!!!! All these docs are now properly formed for the new MDX parser in docusaurus 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant