Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(no-story): prevent merge conflicts when generating docs for old branches #3864

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions etc/docs/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import {
confirm,
customSemverCompare,
getCommandLineArguments,
JsonVersionSchema,
type JsonVersionSchema,
LATEST_TAG,
log,
TomlVersionSchema,
VersionSchema
type TomlVersionSchema,
type VersionSchema
} from './utils';

const exec = promisify(execCb);
Expand Down Expand Up @@ -107,6 +107,9 @@ async function main() {

log('Generating new static site...');

await exec(`git checkout main ${RELEASES_TOML_FILE}`);
await exec(`git checkout main ${RELEASES_JSON_FILE}`);

const tomlVersions = parse(
await readFile(RELEASES_TOML_FILE, { encoding: 'utf8' })
) as unknown as TomlVersionSchema;
Expand Down