This is an automated email from the ASF dual-hosted git repository.
VGalaxies pushed a commit to branch docusaurus-issue-103-preview
in repository https://gitbox.apache.org/repos/asf/hugegraph-doc.git
The following commit(s) were added to refs/heads/docusaurus-issue-103-preview
by this push:
new 5077e35d docs: remove stale download slug adapter
5077e35d is described below
commit 5077e35d00b637e145f68464a307ec95f472f4da
Author: VGalaxies <[email protected]>
AuthorDate: Tue May 5 14:30:31 2026 +0000
docs: remove stale download slug adapter
---
src/markdown/frontMatter.js | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/src/markdown/frontMatter.js b/src/markdown/frontMatter.js
index de908ae0..d716c0eb 100644
--- a/src/markdown/frontMatter.js
+++ b/src/markdown/frontMatter.js
@@ -48,12 +48,6 @@ function blogSlug(filePath, frontMatter) {
return `/${year}/${month}/${day}/${slugify(frontMatter.title || fallback)}`;
}
-function legacyDocSlug(filePath) {
- const normalized = filePath.split(path.sep).join('/');
- const match =
normalized.match(/content\/(?:en|cn)\/docs\/download\/download\.md$/);
- return match ? '/download/download' : undefined;
-}
-
module.exports = async function parseHugoFrontMatter(args) {
const parsed = await DEFAULT_PARSE_FRONT_MATTER(args);
parsed.frontMatter = parsed.frontMatter || {};
@@ -63,11 +57,6 @@ module.exports = async function parseHugoFrontMatter(args) {
parsed.frontMatter.slug = slug;
}
- const legacySlug = legacyDocSlug(args.filePath);
- if (legacySlug && parsed.frontMatter.slug === undefined) {
- parsed.frontMatter.slug = legacySlug;
- }
-
const postSlug = blogSlug(args.filePath, parsed.frontMatter);
if (postSlug && parsed.frontMatter.slug === undefined) {
parsed.frontMatter.slug = postSlug;