feature: Update builds to use STDLIB_BRANCH environment variable when set #102
+63
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #101
Checklist
tools/scripts/utils/stdlib_version.jsto returnSTDLIB_DOCS_DIRNAMEenv var if setSTDLIB_BRANCHvariable to Makefile (defaults todevelop)STDLIB_DOCS_DIRNAMEfromSTDLIB_BRANCH:develop→latest/with-(e.g.,feature/docs→feature-docs)clone-stdlib-versiontarget that:node_modules/@stdlib/stdlibnode_modules/@stdlib/stdlibdevelopbranch whenSTDLIB_BRANCHis not specifiedmake install-node-modulesin stdlib directoryapi-docstarget to:clone-stdlib-versionSTDLIB_DOCS_DIRNAMEto build scriptsmake api-docsuses develop branch (outputs tolatest/)make api-docs STDLIB_BRANCH=v0.2.0(outputs tov0.2.0/)/(e.g.,feature/docs→feature-docs/)STDLIB_DOCS_DIRNAMEis set correctly for all build scriptsDescription
This pull request implements the first step in #101
So now you can build the docs for v0.3.2 with
make build STDLIB_BRANCH=v0.3.2and the generated docs will end up atpublic/docs/api/v0.3.2.@stdlib-js/reviewers