Migrate in-app help documentation and images from main repository with GitBook includes#3
Migrate in-app help documentation and images from main repository with GitBook includes#3
Conversation
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
|
@copilot Is the structure where you migrated the files to really a good one? Also did you make sure all the images that are referenced in the markdown files were included in the migration? |
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Good catches!
All image references in the markdown files (e.g., Commit: 912fb5e |
|
@copilot We are using gitbooks, which uses a different style of includes than what is currently there. From the docs:
Use this method instead of the tvh_include directive, move the reusable content to the .gitbook/includes directory. |
…ok/includes Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Converted all includes to GitBook syntax. Changes made:
Example from {% include "../../.gitbook/includes/users_contents.md" %}The relative paths are calculated based on file depth (e.g., files in Commit: 12365ac |
|
@copilot All the images should be moved into the .gitbook/assets directory, just like it's in the existing files. |
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
Moved all images to
Example path changes:
All relative paths are calculated based on file depth, matching GitBook's convention for assets stored in Commit: 0b11f63 |
Migrates 266 files (131 markdown + 135 images/icons) from
tvheadend/tvheadend:docs/andsrc/webui/static/img/totvheadend/documentationto centralize documentation and enable independent versioning.Changes
266 files migrated with GitBook-compliant structure:
webui/class/- 37 class documentation fileswebui/property/- 45 property help fileswebui/wizard/- 8 wizard step fileswebui/markdown/- 19 general documentation files.gitbook/includes/- 22 reusable content blocks (moved fromwebui/markdown/inc/).gitbook/assets/- 135 images and icons (moved fromwebui/static/img/)Documentation added:
MIGRATION.md- Migration summary and file inventorywebui/INTEGRATION.md- Integration guide with submodule/URL/build-time optionswebui/README.md- Structure overviewSUMMARY.mdto link key webui documentationGitBook Integration
Converted all include directives and image references to GitBook's standard syntax:
{% include "../../.gitbook/includes/users_contents.md" %} Reusable content blocks are stored in
.gitbook/includes/directory as per GitBook's documentation syncing conventions. All 112 include references across 45 files have been updated with proper relative paths.Images and icons are stored in
.gitbook/assets/directory following GitBook conventions. All 36 files with image references have been updated to use relative paths to the assets directory.File References
All internal links preserved:
Image and include paths are calculated based on file depth to ensure correct relative paths from any location in the documentation.
Integration Path
Main repository can reference via:
docs-external/raw.githubusercontent.com/tvheadend/documentation/master/See
webui/INTEGRATION.mdfor implementation details.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.