diff --git a/templates/tabulareditor/README.md b/templates/tabulareditor/README.md index c88993de9..37c262105 100644 --- a/templates/tabulareditor/README.md +++ b/templates/tabulareditor/README.md @@ -101,16 +101,20 @@ we could exec followng command when standing in the root directory of `tabular-e └── whats-new ``` -### Sync command +In normal operation this is done by the `DocsTemplate-deploy` Azure pipeline (`.pipelines/doc-template-deploy.yml`), +which builds the template on every push to `main`, mirrors it into `TabularEditorDocs/templates/tabulareditor/` and +opens a PR on the `automation/template-sync` branch. That branch is recreated from `main` and force-pushed on every +run, so never commit to it by hand; fix things here and let the pipeline re-run. -```bash -rsync -av --exclude='src' --exclude='tools' ./templates/tabulareditor ../TabularEditorDocs/templates/ -``` +The sync is a mirror (`rsync --delete` / `robocopy /MIR`): anything not built or tracked in this repo is removed +downstream. Static assets that the site needs (the self-hosted fonts under `public/googlefonts/`, favicons, `main.css`, +`main.js`) are therefore tracked here even though the rest of `public/` is build output. -And temporary for the forked repository. +### Manual sync command ```bash -rsync -av --exclude='src' --exclude='tools' ./templates/tabulareditor ../TabularEditorDocsFork/templates/ +(cd templates && npm run build) +rsync -av --delete --exclude='src' --exclude='tools' --exclude='node_modules' ./templates/tabulareditor/ ../TabularEditorDocs/templates/tabulareditor/ ``` For windows @@ -118,7 +122,7 @@ For windows ```bash npm run build -robocopy "\templates\tabulareditor" "\TabularEditorDocs\templates\tabulareditor" /E /XD src tools /MIR +robocopy "\templates\tabulareditor" "\TabularEditorDocs\templates\tabulareditor" /E /XD src tools node_modules /MIR ``` ## Additional Files diff --git a/templates/tabulareditor/layout/_master.tmpl b/templates/tabulareditor/layout/_master.tmpl index 4358db45c..3298387b9 100644 --- a/templates/tabulareditor/layout/_master.tmpl +++ b/templates/tabulareditor/layout/_master.tmpl @@ -66,7 +66,7 @@ font-weight: 400; font-style: normal; font-display: swap; - src: url("{{_rel}}public/googlefonts/regular.woff2") format("woff2"), url("{{_rel}}public/googlefonts/Poppins/regular.woff") format("woff"); + src: url("{{_rel}}public/googlefonts/Poppins/regular.woff2") format("woff2"), url("{{_rel}}public/googlefonts/Poppins/regular.woff") format("woff"); } @font-face { font-family: "Poppins"; diff --git a/templates/tabulareditor/public/bootstrap-icons-OCU552PF.woff b/templates/tabulareditor/public/bootstrap-icons-OCU552PF.woff deleted file mode 100644 index 51204d27d..000000000 Binary files a/templates/tabulareditor/public/bootstrap-icons-OCU552PF.woff and /dev/null differ diff --git a/templates/tabulareditor/public/bootstrap-icons-X6UQXWUS.woff2 b/templates/tabulareditor/public/bootstrap-icons-X6UQXWUS.woff2 deleted file mode 100644 index 92c483021..000000000 Binary files a/templates/tabulareditor/public/bootstrap-icons-X6UQXWUS.woff2 and /dev/null differ