Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

chore(docs): improve devsite structure - #962

Merged
daniel-sanche merged 26 commits into
googleapis:mainfrom
daniel-sanche:fix-async-devsite
May 29, 2024
Merged

chore(docs): improve devsite structure#962
daniel-sanche merged 26 commits into
googleapis:mainfrom
daniel-sanche:fix-async-devsite

Conversation

@daniel-sanche

@daniel-sanchedaniel-sanche commented May 15, 2024

Copy link
Copy Markdown
Contributor

Changes

Previously, the devsite page for bigtable was messy, combining pages for both clients into a single list:

image

This change adds a post-processing step to docfx, to add sections for the two client types to the table of contents, to keep things organized

image


Implementation Details

The table of contents on devsite is configured through docs/_build/html/docfx_yaml/toc.yml, which is generated uisng nox -s docfx as part of the release pipeline.

This PR adds a new script called patch_devsite_toc.py, which is added as a post-processing step to the end of nox -s docfx to add new sections to the auto-generated table of contents.

As part of the PR, all pages specific to each client have been moved into subfolders in the docs/ directory. These sub-folders can then be referenced by patch_devsite_toc.py when adding new sections to the table of contents

To avoid docs issues in the future, I also added a verification step to the new script, to make sure the table of contents remains formatted as expected

Staged page available to reviewers on request

@daniel-sanche
daniel-sanche requested review from a teamMay 15, 2024 22:32
@product-auto-labelproduct-auto-labelBot added the size: m Pull request size is medium. label May 15, 2024
@product-auto-labelproduct-auto-labelBot added the api: bigtable Issues related to the googleapis/python-bigtable API. label May 15, 2024
@snippet-bot

snippet-botBot commented May 15, 2024

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 96 region tags.
You are about to delete 96 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Comment threaddocs/standard_client/usage.rst Outdated
@@ -1,10 +1,15 @@
Using the Sync Client
=====================
Standard Client

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Is "Standard Client" a good name for this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Potentially? Not sure what's a good name for it though. Bigtable client might be a more generically encapsulating name, but might be confusing with the API section right below it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would call it "classic api"

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Maybe "Classic Client"? There's the complication that we also have to communicate the differences between the admin api vs the data api, so API is a bit overloaded

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Classic client seems good

Comment threaddocs/scripts/patch_devsite_toc.py Outdated
Comment threaddocs/scripts/patch_devsite_toc.py Outdated
Comment threaddocs/scripts/patch_devsite_toc.py
Comment threaddocs/scripts/patch_devsite_toc.py
Comment threaddocs/scripts/patch_devsite_toc.py Outdated
Comment threaddocs/scripts/patch_devsite_toc.py Outdated
@daniel-sanche

Copy link
Copy Markdown
ContributorAuthor

Added a feature to remove sections, and used it to remove the bottom "Bigtable" section. This section was a duplicate of the content we have in the two client folders

@bhshkhbhshkh assigned daniel-sanche and unassigned bhshkhMay 16, 2024
Comment threaddocs/scripts/patch_devsite_toc.py Outdated

def remove_sections(toc_file_path, section_list, output_file_path=None):
"""
Add new sections to the autogenerated docfx table of contents file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the doc is a copy/paste error?

Comment threaddocs/standard_client/usage.rst Outdated
@@ -1,10 +1,15 @@
Using the Sync Client
=====================
Standard Client

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Classic client seems good

@product-auto-labelproduct-auto-labelBot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels May 29, 2024
@daniel-sanche
daniel-sanche merged commit 30c65e8 into googleapis:mainMay 29, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigtableIssues related to the googleapis/python-bigtable API.size: sPull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@daniel-sanche@igorbernstein2@dandhlee@bhshkh