Closed jmuzina closed 2 months ago
Added the base behavior of showing both Jinja and HTML in the docs. This needs to be accompanied by the following:
FYI @pastelcyborg @advl
Updated this to syntax-highlight the HTML within macro slots, as I noticed they weren't highlighted in #5331
I'm not sure I'd default to showing Jinja for the examples with macros - I think HTML is always the best default. We should probably assume our default user is external and would get limited value out of the macros.
Good call, switched so HTML is the default rather than Jinja
I think if there is Jinja available, it should be shown as default.
I think if there is Jinja available, it should be shown as default.
Switched back to using Jinja as default if it is found per MM discussion
Done
data-lang="jinja"
to the placement element in the docs.example()
function. Added a route for/docs/example/<example_file_path>?raw=true
that serves raw template files. This was necessary to expose the Jinja templates of examples to the front-end so they can be rendered in docs page code snippets.example.js
filevar
inexample.js
tolet
orconst
throttle()
to a shared utils scriptXMLHttpRequest
to the more modernfetch
. Extracted the remote fetching logic into its ownasync
function, for simpler handling of multiple network requests.js-beautify
(fixes #5332)Fixes #5254
Fixes #5332 Fixes WD-13705
QA
build.css
is not loaded on a hard-refresh.Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 🎁
,Breaking Change 💣
,Bug 🐛
,Documentation 📝
,Maintenance 🔨
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots