product-os / docusaurus-builder Goto Github PK
View Code? Open in Web Editor NEWAn opinionated docusaurus theme building websites at scale.
An opinionated docusaurus theme building websites at scale.
I noticed the "Changelog" and "Edit on GitHub" links in the top navigation bar take you to the repository from which the docs site was created. This is probably fine for a dedicated docs repo like fin-userManual-doc, where:
But imagine you're on this page https://os-docs.balena.io/faqs
Now those links take you to a changelog for meta-balena
and to the meta-balena
GitHub repo respectively, which would be bewildering for most.
Potentially it's useful to link to these things, but in those cases it probably makes sense to do so within the docs, not in the navigation bar where context can't be explained. So instead, maybe we:
Ideally, "Edit on GitHub" would take you to the edit page of the current file, but still that might be best to be optional for cases like meta-balena
where making an edit is not for the faint-hearted.
What if someone wants their own docs title different than repo name.
Can we infer the docs title from a hidden property in the README frontmatter
Can the docs title be the first h1 heading of the README
The only thing is we need to find a solution without adding a config file.
Product landing pages as a navbar link would help us get feature parity with the current website. Atm we neither have what those subdomains will turn out to be and probably will be a special case to implement for only products that have websites/landing pages to show.
Something to discuss for sure.
Docusaurus version 2.3.0 is released with fixes for mermaid diagrams - https://github.com/facebook/docusaurus/releases/tag/v2.3.0
Figure out a way to create a website that is built using repo's files & configuration but using the branch's updated action to make use of that website as
Find a way to use the same branch to build the new website so as to new features.
Originally the idea was to have Changelogs be part of docs: https://6072976c.balena-fin.pages.dev/changelog
This was removed in #23
Why?
With the immutable nature of Changelogs, it's very hard to change existing Changelogs to follow the latest template that have since rectified some of these issues. We can talk more about how to bring these back in a way where it's less breaking changes on build time.
Zulip: https://balena.zulipchat.com/#narrow/stream/345882-_help/topic/Where.20are.20changelogs.20created.3F
We should easily be able to add amplitude analytics to our docs websites.
Find a way to generate the theme copyright using the repository license, could be cool plugin idea.
Currently there's no mechanism to see how this container works locally; we should have an example directory to be used for self testing to ensure that plugins, such as mermaid and tsdoc (in the future), are still working.
Recently https://custom-device-support.pages.dev/ was moved to http://balena.io/cds/docs and it broke since the BaseURL wasn't correctly set to the new /cds/docs
. The error is very clear.
This is something we can't infer in the repository and could be set as a new input in flowzone and then amended in Docusaurus.
In initial testing found the builder job to have passed even when links are breaking in docs
https://github.com/balena-io-hardware/fin-info-doc/actions/runs/3629006120/jobs/6120765125
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Dockerfile
node 18-buster-slim
.github/workflows/flowzone.yml
product-os/flowzone master
package.json
@cmfcmf/docusaurus-search-local ^1.1.0
@docusaurus/core ^3.0.1
@docusaurus/preset-classic ^3.0.1
@docusaurus/theme-mermaid ^3.0.1
@mdx-js/react ^3.0.0
gray-matter ^4.0.3
prism-react-renderer ^2.3.0
react ^18.2.0
react-dom ^18.2.0
@docusaurus/tsconfig ^3.0.1
@types/react ^18.2.45
@docusaurus/types 3.3.2
@docusaurus/module-type-aliases ^3.0.1
typescript 5.4.5
node >=18
@docusaurus/core ^3.0.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.