refactor: overhaul Docusaurus command and generation
- Rework `hero docusaurus` command to use local `cfg` files - Scan and export doctree collections during site generation - Fix `baseUrl` redirect path handling in `index.tsx` - Add cycle detection for `play.include` in playbooks - Improve site config processing to prevent duplicate items
This commit is contained in:
@@ -5,6 +5,9 @@ import freeflowuniverse.herolib.core.playcmds
|
||||
playcmds.run(
|
||||
heroscript: '
|
||||
|
||||
!!docusaurus.config
|
||||
title: "TFGrid Tech Docs"
|
||||
|
||||
!!docusaurus.define
|
||||
path_build: "/tmp/docusaurus_build"
|
||||
path_publish: "/tmp/docusaurus_publish"
|
||||
@@ -12,12 +15,14 @@ playcmds.run(
|
||||
install: 1
|
||||
template_update: 1
|
||||
|
||||
!!docusaurus.add name:"tfgrid_docs"
|
||||
!!docusaurus.add sitename:"default"
|
||||
git_url:"https://git.threefold.info/tfgrid/docs_tfgrid4/src/branch/main/ebooks/tech"
|
||||
git_root:"/tmp/code"
|
||||
git_reset:1
|
||||
git_pull:1
|
||||
|
||||
!!docusaurus.build
|
||||
|
||||
!!docusaurus.dev site:"default" open:true watch_changes:true
|
||||
'
|
||||
)!
|
||||
|
||||
Reference in New Issue
Block a user