Skip to content

Commit

Permalink
chore: api version dropdown feature (#1627)
Browse files Browse the repository at this point in the history
* swizzle dropdown

* chore: update core files

* chore: updated version script

* chore: updated node version script

* ci: updated gitignore

* chore: updated versions script

* ci: verify API logic works

* ci: minor edit to the test YAML

* ci: adding versioning build step

* ci: removed test CI file for version validation

---------

Co-authored-by: Nageshwara sairam <113401242+nagesh161007@users.noreply.github.com>
  • Loading branch information
karl-cardenas-coding and nagesh161007 committed Sep 29, 2023
1 parent fc22825 commit 610e876
Show file tree
Hide file tree
Showing 6 changed files with 503 additions and 314 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ docs/api-content/api-docs/v1/sidebar.js
versions.json
versioned_docs/
versioned_sidebars/
api_versions.json
api_versioned_docs/
api_versioned_sidebars/
versioned_sidebars/*
temp.docusaurus.config.js
staging_docs/
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ clean: ## Clean build artifacts
rm -rf node_modules build public .cache .docusaurus
docker image rm $(IMAGE) || echo "No image exists."

clean-versions: ## Clean Docusarus content versions
@echo "cleaning versions"
rm -rf api_versions.json versions.json versioned_docs versioned_sidebars api_versioned_sidebars api_versioned_docs
git checkout -- docusaurus.config.js

##@ npm Targets

init: ## Initialize npm dependencies
Expand Down
Loading

0 comments on commit 610e876

Please sign in to comment.