Repository navigation
docs: replace markdown docs with comprehensive guides and Docusaurus deployment - #32
Conversation
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
|
Keep docs/RELEASE_NOTES_INSTRUCTIONS.md but integrate docs/THEME_GUIDE.md, docs/THEME_IMPLEMENTATION_GUIDE.md and docs/ENDPOINT_BUTTONS.md into the new documentation. Then remove them. Rename the workflow to deploy-pages |
Co-authored-by: MathiasVDA <15101339+MathiasVDA@users.noreply.github.com>
Done in commit ebb3ef9:
The theme and endpoint button documentation is now part of the main guides with enhanced details and examples. |
There was a problem hiding this comment.
Pull request overview
This PR successfully replaces existing markdown documentation with a comprehensive Docusaurus-based documentation site and reorganizes the deployment structure to serve both documentation and the live application from GitHub Pages.
Key Changes:
- Introduces Docusaurus 3.9.2 for documentation with modern React-based static site generation
- Restructures GitHub Pages deployment: documentation at root (
/) and live build at/dev/main/ - Adds comprehensive User Guide and Developer Guide documentation structure
- Consolidates specialized guides (theme guides, endpoint button docs) into main documentation
Reviewed changes
Copilot reviewed 21 out of 32 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
website/docusaurus.config.ts |
Configures Docusaurus with YASGUI branding, GitHub integration, and navigation |
website/package.json |
Defines dependencies including Docusaurus 3.9.2, React 19, and build scripts |
website/sidebars.ts |
Sets up documentation sidebar navigation structure |
website/tsconfig.json |
TypeScript configuration for Docusaurus with proper exclusions |
website/src/pages/index.tsx |
Homepage component with links to documentation and live demo |
website/src/components/HomepageFeatures/index.tsx |
Feature showcase component (contains placeholder Docusaurus content) |
website/docs/intro.md |
Documentation landing page with quick links and feature overview |
website/static/ |
Static assets including favicon, logo, and placeholder SVG images |
docs/release-note-instructions.md |
Consolidated release notes generation guide |
.gitignore |
Updated to exclude Docusaurus build artifacts |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const FeatureList: FeatureItem[] = [ | ||
| { | ||
| title: 'Easy to Use', | ||
| Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, | ||
| description: ( | ||
| <> | ||
| Docusaurus was designed from the ground up to be easily installed and | ||
| used to get your website up and running quickly. | ||
| </> | ||
| ), | ||
| }, | ||
| { | ||
| title: 'Focus on What Matters', | ||
| Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, | ||
| description: ( | ||
| <> | ||
| Docusaurus lets you focus on your docs, and we'll do the chores. Go | ||
| ahead and move your docs into the <code>docs</code> directory. | ||
| </> | ||
| ), | ||
| }, | ||
| { | ||
| title: 'Powered by React', | ||
| Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, | ||
| description: ( | ||
| <> | ||
| Extend or customize your website layout by reusing React. Docusaurus can | ||
| be extended while reusing the same header and footer. | ||
| </> | ||
| ), | ||
| }, | ||
| ]; |
There was a problem hiding this comment.
The HomepageFeatures component contains placeholder Docusaurus content that should be replaced with YASGUI-specific feature descriptions. The current text references "Docusaurus" instead of "YASGUI" features.
Replaces existing markdown documentation with two comprehensive guides (User Guide and Developer Guide), streamlines the README, and deploys documentation via Docusaurus to GitHub Pages with the dev build at
/dev/main.Documentation Content
User Guide (24KB): SPARQL introduction, high-level component overview, enhanced feature documentation (themes with system detection, layouts, formatting, prefix management, URI explorer), detailed endpoint quick switch guide, plugin descriptions with constraints, keyboard shortcuts, troubleshooting. No code snippets.
Developer Guide (55KB): Architecture diagram with labeled package structure, installation methods (npm/yarn/CDN/Docker/source), usage examples across frameworks (HTML, React, Vue, Angular), complete configuration reference with enhanced theme and endpoint buttons sections, API methods and events with TypeScript interfaces, step-by-step plugin development guide with comprehensive theme support implementation guide, contribution workflow.
README: Condensed to essentials—description, features list with doc links, quick start, installation, GitHub Pages structure documentation.
Docusaurus Setup
GitHub Actions Workflow
.github/workflows/deploy-pages.yml(renamed fromdeploy-docs.yml):Deployed structure:
Documentation Consolidation
Integrated and removed specialized guides into main documentation:
docs/THEME_GUIDE.md→ Enhanced themes sections in user and developer guides with system detection, persistence, and CSS customizationdocs/THEME_IMPLEMENTATION_GUIDE.md→ New "Theme Support for Plugins" section in developer guide with complete implementation stepsdocs/ENDPOINT_BUTTONS.md→ Enhanced endpoint quick switch sections with detailed behavior and configurationdocs/RELEASE_NOTES_INSTRUCTIONS.mdas standalone referenceEnhanced Sections
User Guide:
Developer Guide:
Example: Developer Guide Usage
Documentation is version-tagged with the repository and includes architecture diagrams, complete TypeScript interfaces, framework integration patterns, and comprehensive plugin theming guide.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.