SatyamPandey-07 commented on PR #4371:
URL: https://github.com/apache/hertzbeat/pull/4371#issuecomment-5935960207

   Hi @zqr10159, good catch! Thank you for pointing out the Docusaurus version 
routing behavior with `lastVersion: '1.8.0'`.
   
   You were completely right: because `1.8.0` is the default release version 
mapped to `/docs/` and `current` maps to `/docs/next/`, adding the pages only 
under `current` resulted in the unversioned console URLs 404ing.
   
   To align with how versioned docs and sidebars are maintained across the 
project (similar to PR #4113 and #4112):
   1. Added `redis_sentinel.md` and `kvrocks.md` to 
`home/versioned_docs/version-1.8.0/help/` (English).
   2. Added `redis_sentinel.md` and `kvrocks.md` to 
`home/i18n/zh-cn/docusaurus-plugin-content-docs/version-1.8.0/help/` (Chinese).
   3. Registered both entries under the `cache` category in 
`home/versioned_sidebars/version-1.8.0-sidebars.json`.
   
   ### Local Validation
   - **Filename check**: `python ./script/ci/docs/check_file_name.py 
./script/ci/docs/check_file_name.json` -> Passed.
   - **Markdown lint**: `pnpm run md-lint` -> Passed (571 files checked, 0 
errors).
   - **Production build**: `pnpm run build` -> Completed successfully for all 
locales (`en`, `zh-cn`, `ko`).
   - **Route check with `pnpm run serve`**: Served the production build and 
verified that all 4 exact URLs return 200 OK and render the intended pages:
     - `http://localhost:3000/docs/help/redis_sentinel` (200 OK)
     - `http://localhost:3000/zh-cn/docs/help/redis_sentinel` (200 OK)
     - `http://localhost:3000/docs/help/kvrocks` (200 OK)
     - `http://localhost:3000/zh-cn/docs/help/kvrocks` (200 OK)
   
   Please take another look when you have a moment. Thanks!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to