Skip to content

Commit

Permalink
templates/lreq_doc/lreq_template Pull in the respec_2022.css style sh…
Browse files Browse the repository at this point in the history
…eet for lreq general styles
  • Loading branch information
r12a committed Jul 5, 2024
1 parent 8c4d9c5 commit 6630110
Showing 1 changed file with 41 additions and 25 deletions.
66 changes: 41 additions & 25 deletions templates/lreq_doc/lreq_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,48 @@
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer></script>
<script class="remove">
var respecConfig = {
// specification status (e.g. WD, LCWD, WG-NOTE, etc.). If in doubt use ED.
specStatus: "ED",
//publishDate: "2020-06-16",
//previousPublishDate: "2014-12-16",
//previousMaturity: "FPWD",

noRecTrack: true,
shortName: "XX_SHORTNAME-lreq",
copyrightStart: "2018",
edDraftURI: "https://w3c.github.io/XX_SHORTNAME/",

// if this is a LCWD, uncomment and set the end of its review period
// lcEnd: "2009-08-05",

editors: [
{ name: "Richard Ishida", mailto: "[email protected]", company: "W3C", w3cid: 3439 }
],


group: "i18n",

github: "w3c/XX_REPONAME",

};
// specification status (e.g. WD, LCWD, WG-NOTE, etc.). If in doubt use ED.
specStatus: "ED",
//publishDate: "2020-06-16",
//previousPublishDate: "2014-12-16",
//previousMaturity: "FPWD",

noRecTrack: true,
shortName: "XX_SHORTNAME-lreq",
copyrightStart: "2018",
edDraftURI: "https://w3c.github.io/XX_SHORTNAME/",

// if this is a LCWD, uncomment and set the end of its review period
// lcEnd: "2009-08-05",

editors: [
{ name: "Richard Ishida", mailto: "[email protected]", company: "W3C", w3cid: 3439 }
],


group: "i18n",

github: "w3c/XX_REPONAME",


postProcess: [
async function importStyleSheet() {
const elems = document.querySelectorAll(`link[rel='stylesheet'][data-import]`)
await Promise.all(
[...elems].map(async link => {
const text = await fetch(link.href).then(r => r.text())
const style = document.createElement("style")
style.textContent = text
link.replaceWith(style)
})
)
}
],
};
</script>
<link rel="stylesheet" href="local.css">

<link rel="stylesheet" data-import href="https://w3c.github.io/i18n-drafts/style/respec_2022.css">
<link rel="stylesheet" href="local.css">
</head>

<body>
Expand Down

0 comments on commit 6630110

Please sign in to comment.