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.
This PR migrates our documentation to Astro based on previous work at #38319.
🌟 Netlify preview
Note
Last commit gathered: 5605e96 (March 8, 2025)
Sub-tasks
site/assets
(must be the latest versions at the end)&& astro check --root site && tsc -p site --noEmit
to theastro-lint
script.github/workflows/*
site-new
tosite
gh-pages
with the same process as before at first<ScssDocs
wherefile="site"
-> find thesite-new
reference so thatnpm run astro-build
builds correctlyCode.astro
file<JsDocs>
from 06f7c3b + 34c2725 + e2854b9 (compared tomain
branch)site/layouts/_default/examples.html
with integrity values etc.)aria-label
if not present by default in Astroindex.astro
examples, double-check that the external scripts and links have been set with the latest version + integritydefer
(see 45fe28c); do we need that with Astro?TODO(Astro migration)
comments.md
AND.mdx
files to check the JS that is contained in the code snippets (Markdown code)Stackblitz
Syntax highlighting
Clean up the
_syntax.scss
file that probably still have things related to Chroma.The colors are reactive to light/dark mode, but aren't exactly the same as Bootstrap. It might be re-plugged or handled differently to have the same rendering
Add
$
or>PM
prefixes for these languagesDiff code is highlighted with colors
At
docs/5.3/getting-started/download#yarn
, we should have a$
at each line:At
docs/5.3/docsref
, there are extra spaces (that should be automatically removed by reindenting the content of<ScssDocs>
and<JsDocs>
)Identation issues when we use stuff like:
that renders
Deployment
Optional
/docs/5.3/examples/dashboard-rtl/
and/docs/5.3/examples/dashboard-rtl
behave differently in dev mode, depending on whether the trailing slash is present. This affects CSS and JS not loading (the local server looks for/docs/5.3/examples/dashboard.css
for instance), though the issue does not occur on production, on Netlify. Please note that when you're navigating in the website by following the links, it works well.