We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ced937d + 6952f8f commit e08f987Copy full SHA for e08f987
apps/website/src/plugins/llms-txt.js
@@ -5,8 +5,9 @@ const matter = require('gray-matter');
5
const DOCS_URL = 'https://commandkit.dev/docs/next/guide';
6
7
const removeNumericPrefix = (path) => {
8
- // 01-getting-started -> getting-started
9
- return path.replace(/^\d+\-/, '');
+ // 01-getting-started/01-introduction -> getting-started/introduction
+ const segments = path.split('/');
10
+ return segments.map(segment => segment.replace(/^\d+\-/, '')).join('/');
11
};
12
13
module.exports = function (context) {
0 commit comments