feat(config): add LLMS plugin to Docusaurus configuration#825
Conversation
b6ca3ac to
ca33dc3
Compare
|
Paths being generated are not correct (docusaurus removes prepended number, the tool doesn't): Ordering is not followed, use the full glob pattern, e.g.: |
8273836 to
4c3ce83
Compare
scripts/fix-llms-urls.mjs
Outdated
| const content = fs.readFileSync(filePath, "utf8"); | ||
|
|
||
| // Fix URLs by removing prepended numbers | ||
| // Pattern: https://dev.flare.network/docs/network/0-overview -> https://dev.flare.network/docs/network/overview |
There was a problem hiding this comment.
why is there docs in the path, dev hub is served from /
e.g.
https://dev.flare.network/network/overview
.github/workflows/deploy.yml
Outdated
| # Check if LLMs files were generated | ||
| if [ ! -f "build/llms.txt" ] || [ ! -f "build/llms-full.txt" ]; then | ||
| echo "❌ LLMs files not found!" | ||
| exit 1 |
There was a problem hiding this comment.
This will fail the entire deploy if the script check fails, since this is an auxilliary feature this should just be a warning in the logs
67290b7 to
a48f2e6
Compare
package.json
Outdated
| "@types/react": "^18.3.23", | ||
| "@types/react-dom": "^18.3.7", | ||
| "@typescript-eslint/eslint-plugin": "^7.18.0", | ||
| "docusaurus-plugin-llms": "^0.1.5", |
There was a problem hiding this comment.
This should be upgraded to v0.2: https://github.com/rachfop/docusaurus-plugin-llms/releases
There was a problem hiding this comment.
From the changelog, it natively handles numbered files and partials
There was a problem hiding this comment.
Thanks for noticing this. It dramatically improves the flow. 🫡
a48f2e6 to
e5a7a1c
Compare
|
@dineshpinto I had to in the end rename the fassets developer guides files to their slugs because the plugin got lost, and it was also to keep them in order |
…e configuration options for improved content organization and LLM consumption
…nd, and implement verification steps in CI workflow
…ete URL fixing script, and simplify CI build command
e6f4ac0 to
6d37d81
Compare
No description provided.