dengliming opened a new issue, #1142:
URL: https://github.com/apache/shenyu-website/issues/1142
The repo still carries Docusaurus template files and dead code, some of it
publicly reachable.
## Publicly reachable template pages
- `src/pages/helloReact.js` → served at `/helloReact`, shows "编辑
pages/hello.js 并保存以刷新。" on the English site.
- `src/pages/markdown-page.md` → served at `/markdown-page` ("Markdown page
example").
## Unused / broken template components
- `src/components/TeamProfileCards/index.tsx` — the Docusaurus team template
(Facebook copyright header, Docusaurus maintainers' bios).
- `src/components/HomepageFeatures.js` + `.module.css` — unused, and it
`require`s `static/img/undraw_docusaurus_{mountain,tree,react}.svg`, which do
not exist (importing it would break the build).
- `src/clientModules/fix-error.js` — never registered (no `clientModules`
entry in the config); its comment claims it is auto-loaded. It duplicates
`static/js/error-suppression.js`.
- `src/theme/BlogSidebar/index.tsx` — copied Facebook header, fragment
without `key` in `.map`, leftover commented `console.log`.
- `i18n/zh/docusaurus-theme-classic/footer.json` — orphaned (there is no
theme footer; the site uses `src/components/Footer.tsx`). Contains "Copyright ©
2022" and `incubator-shenyu` URLs.
- `docusaurus.config.js:20-21,141,151` — template comments "// Usually your
GitHub org/user name.", "// Please change this to your repo." although the
values are already correct.
- `src/pages/index.tsx:38-43` — `data-light-logo` / `data-dark-logo`
attributes are unused (dark mode is handled by CSS).
## Dead but rotting data
`docusaurus.config.js` excludes `src/pages/blog.tsx` and
`src/pages/news.tsx` from the pages plugin, so `/blog` and `/news` come from
the blog plugins and `src/data/blogInfo.js` / `src/data/newsInfo.js` are never
rendered. They are nonetheless out of date (no 2.7.1 news entry, malformed
dates like `'2021-07-2'`, wrong descriptions, a `categray` field holding a
`<Translate>` element that would render as `[object Object]`). Either delete
`blog.tsx`, `news.tsx`, `blogInfo.js`, `newsInfo.js` and their `code.json` ids,
or re-enable and fix them.
## Misc
- `progress.md` at the repo root is an AI/agent work log from #1123
(contains a local path `/Users/aias/Work/github/shenyu`, no ASF header). It
does not belong in the repo.
- `scripts/` is an empty directory.
- Misspelled file names `src/components/DownloadCompoent.tsx` /
`.module.css` (→ `DownloadComponent`), imported from `src/pages/download.mdx:7`
and the zh `download.mdx:7` (the latter via a relative `../../../src/...` path;
prefer `@site/src/...`).
--
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]