mirror of
https://github.com/tauri-apps/tauri-docs.git
synced 2026-01-31 00:35:16 +01:00
* Remove French docs (none had been translated yet) * Move English docs up to be directly under the docs folder (serves as the default) * Remove old translation files * Remove references to old translation files in docusaurus.config.js, index.js, partners.js, and showcase.js, swapping in place Docusaurus's Translate HTML element and translate() function * Remove unused users.js file * Remove supported-languages.js (this is now contained by default in the docusaurus.config.js file) * Add translate command to package.json that will auto-generate enabled languages * Add generated translation files derived from translate (note: this will require re-work on Crowdin) * Add MIT license to package.json (removes an annoying warning when building) * Update supported browsers (removes an annoying warning when building) * Remove t, languages, and language objects from docusaurus.config.js that were referencing the old translation files * Update netlify.toml to now simply run yarn build (note: this will not yet generated the translations on CI/CD, this will need to be updated later)
30 lines
863 B
JavaScript
30 lines
863 B
JavaScript
module.exports = function (context, { language }) {
|
|
return {
|
|
name: 'dynamic-css',
|
|
injectHtmlTags() {
|
|
return {
|
|
headTags: [
|
|
{
|
|
tagName: 'style',
|
|
attributes: {
|
|
id: 'dynamic-css',
|
|
},
|
|
innerHTML: `
|
|
@font-face {
|
|
font-family: 'themify';
|
|
src:url('/fonts/themify.eot?-fvbane');
|
|
src:url('/fonts/themify.eot?#iefix-fvbane') format('embedded-opentype'),
|
|
url('/fonts/themify.woff?-fvbane') format('woff'),
|
|
url('/fonts/themify.ttf?-fvbane') format('truetype'),
|
|
url('/fonts/themify.svg?-fvbane#themify') format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
`,
|
|
},
|
|
],
|
|
}
|
|
},
|
|
}
|
|
}
|