Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions templates/tabulareditor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,28 @@ 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

```bash
npm run build

robocopy "<yourpath>\templates\tabulareditor" "<yourpath>\TabularEditorDocs\templates\tabulareditor" /E /XD src tools /MIR
robocopy "<yourpath>\templates\tabulareditor" "<yourpath>\TabularEditorDocs\templates\tabulareditor" /E /XD src tools node_modules /MIR
```

## Additional Files
Expand Down
2 changes: 1 addition & 1 deletion templates/tabulareditor/layout/_master.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Binary file not shown.
Binary file not shown.
Loading