-
Notifications
You must be signed in to change notification settings - Fork 5
Revamped engine for static documentation in the Next.js site #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
seesharprun
wants to merge
12
commits into
documentdb:main
Choose a base branch
from
seesharprun-documentdb-prototype:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Revamped engine for static documentation in the Next.js site #7
seesharprun
wants to merge
12
commits into
documentdb:main
from
seesharprun-documentdb-prototype:main
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated the development container configuration to use a different base image and removed some features.
Author
|
@abinav2307 This is ready for review. Here's the changes I made:
|
Author
|
Ping @abinav2307 This PR was updated to incorporate your latest changes (packages download page) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentation engine build
This is a rework to host the MongoDB Query Language documentation in a structured manner. This rework also shows how to host the articles as Markdown and landing page(s) as YAML. This makes it easier for others to contribute to your documentation without requiring knowledge of Next.js internals.
This prototype also heavily uses static rendering, so the HTML files are generated at compilation, and HTML is served client side. This allows the site to have SEO metadata set on a per-page basis, titles set on a per-page basis, and deep linking to specific articles.
Preview
Here's a preview of the site auto-published to GitHub Pages:
Changes in this PoC
Contribution endpoints
/reference/**/*.yml/articles/**/*.md/articles/**/*.yml/articles/content.yml/blogs/content.ymlHow you can use this
Feel free to pick this PR apart, re-use ideas, and close it when you're done.
Looking forward
This PR opens up the possibility of using the structured operator/command files as part of a CI/CD workflow. You could easily host DocumentDB's container as a sidecar in a GitHub action and actually run each example command to verify it works on a scheduled and per-PR basis. We can also use AI and other tools to review the examples and perform operations like streamlining the samples to be similar across all documentation.