Skip to content

docs: restructure documentation hierarchy#791

Open
Gurkaran18 wants to merge 3 commits into
kubeedge:masterfrom
Gurkaran18:docs/restructure-issue-1498
Open

docs: restructure documentation hierarchy#791
Gurkaran18 wants to merge 3 commits into
kubeedge:masterfrom
Gurkaran18:docs/restructure-issue-1498

Conversation

@Gurkaran18
Copy link
Copy Markdown

What kind of change does this PR introduce?

docs update

What is the current behavior?

The existing documentation structure mixes user-facing content with
developer-facing content under vague directories like docs/advanced/
and docs/setup/. The sidebar is fully auto-generated from the
filesystem, meaning there is no intentional information architecture.
This makes the docs hard to navigate for both new users and contributors.

Fixes: kubeedge/kubeedge#1498

What is the new behavior?

Reorganizes the kubeedge/website docs into a clean, intentional
hierarchy with a clear separation between user and developer content:

  • docs/setup/docs/user-guide/getting-started/ (install guides)
    docs/user-guide/configuration/ (config & upgrade)
  • docs/advanced/docs/user-guide/features/ (feature guides)
    docs/user-guide/troubleshooting/ (debug guide)
  • docs/developer/docs/developer-guide/ (all dev content)
  • docs/faq/docs/reference/faq/ (reference section)
  • sidebars.js: Replaces auto-generated sidebar with an explicit manual
    hierarchy enforcing this order:
    Welcome → User Guide → Developer Guide → Concepts → Reference → Community
  • Fixes all internal relative links broken by the above renames (9 files).
  • Removes stale _category_.json files from vacated directories.

Does this PR introduce a breaking change?

No. This is a pure documentation restructuring. No Go source code,
APIs, or configuration schemas are modified.

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (n/a — docs only)
  • Docs have been added / updated (this IS the docs update)

Other information

This work implements the document architecture proposed by maintainer
daixiang0 in the issue thread (Nov 26, 2020 comment). The issue has
been open since 2020 and was marked lifecycle/frozen to prevent the
stale bot from closing it, indicating maintainers consider this high
priority.

@kubeedge-bot kubeedge-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. labels May 4, 2026
@kubeedge-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign wbc6080 after the PR has been reviewed.
You can assign the PR to them by writing /assign @wbc6080 in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot
Copy link
Copy Markdown
Collaborator

Welcome @Gurkaran18! It looks like this is your first PR to kubeedge/website 🎉

@kubeedge-bot kubeedge-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 4, 2026
@Gurkaran18 Gurkaran18 force-pushed the docs/restructure-issue-1498 branch from 31f5f04 to a0f66c6 Compare May 4, 2026 16:57
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request restructures the KubeEdge documentation by migrating files into a more organized directory hierarchy and updating internal links and the sidebar configuration. Feedback focuses on fixing a potentially broken link in the sidebar caused by a custom document ID, removing the migration script to prevent repository clutter, and improving the safety of the script's git operations.

Comment thread sidebars.js Outdated
items: [
'developer-guide/dmi',
'developer-guide/mapper-framework',
'developer-guide/mappers/index',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The document docs/developer-guide/mappers/index.md defines a custom id: mappers-index in its frontmatter. In Docusaurus, when a custom ID is provided, the resulting Doc ID is the directory path joined with that custom ID (e.g., developer-guide/mappers/mappers-index). The current sidebar entry 'developer-guide/mappers/index' will fail to resolve, likely breaking this link in the sidebar.

Suggested change
'developer-guide/mappers/index',
'developer-guide/mappers/mappers-index',

Comment thread restructure_docs.sh
@@ -0,0 +1,108 @@
#!/bin/bash
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This script appears to be a one-off migration tool used to perform the documentation restructuring. Since the changes (moved files and updated links) are already included in this pull request, committing the script to the repository's root directory is unnecessary and adds clutter to the codebase. It is recommended to remove this file before merging.

Comment thread restructure_docs.sh
rm -f docs/advanced/_category_.json
rm -f docs/developer/_category_.json
rm -f docs/faq/_category_.json
git add -A # stage the removals
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Using git add -A in a script can be risky as it stages all changes in the working directory, including untracked files that may not be intended for the commit. It is safer to use a more specific command like git add docs/ to ensure only documentation changes are staged.

Suggested change
git add -A # stage the removals
git add docs/

@Gurkaran18 Gurkaran18 changed the title docs: restructure documentation hierarchy (fixes #1498) docs: restructure documentation hierarchy May 4, 2026
@kubeedge-bot kubeedge-bot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label May 4, 2026
Gurkaran Singh added 2 commits May 4, 2026 22:47
Reorganize the KubeEdge documentation to establish a clean separation
between user-facing and developer-facing content, as proposed in Issue 1498.

Changes:
- docs/setup/     -> docs/user-guide/getting-started/ and configuration/
- docs/advanced/  -> docs/user-guide/features/ and troubleshooting/
- docs/developer/ -> docs/developer-guide/
- docs/faq/       -> docs/reference/faq/
- sidebars.js: replace autogenerated sidebar with explicit manual hierarchy
- Fix all internal relative links broken by the above renames (9 files)
- Remove stale _category_.json files from vacated directories

Signed-off-by: Gurkaran Singh <gurkaranbirsingh@example.com>
- Switch sidebars.js from explicit doc IDs to autogenerated per-directory
  approach which is the correct Docusaurus v2/v3 pattern
- Add _category_.json files to all new directories to control sidebar
  labels and ordering:
  - user-guide/ (position 2)
  - user-guide/getting-started/ (position 1)
  - user-guide/configuration/ (position 2)
  - user-guide/features/ (position 3)
  - user-guide/troubleshooting/ (position 4)
  - developer-guide/ (position 3)
  - developer-guide/mappers/ (position 6)
  - developer-guide/test/ (position 7)
  - reference/ and reference/faq/ (position 1)

Signed-off-by: Gurkaran Singh <gurkaranbirsingh@example.com>
@Gurkaran18 Gurkaran18 force-pushed the docs/restructure-issue-1498 branch from e8824e9 to 87fedde Compare May 4, 2026 17:17
- Fixed remaining broken relative links in English docs (install-with-binary, metrics, upgrade, mapper)
- Migrated Chinese translation directory structure (i18n/zh/.../current/) to match the new English hierarchy
- Fixed 12 broken relative links within the Chinese translation files

Signed-off-by: Gurkaran Singh <gurkaranbirsingh@example.com>
@kubeedge-bot kubeedge-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 4, 2026
@Gurkaran18 Gurkaran18 marked this pull request as ready for review May 4, 2026 17:38
@kubeedge-bot kubeedge-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revising document structure

2 participants