From 11a7490400b350f6f8790d6490948c08f77bccd0 Mon Sep 17 00:00:00 2001 From: Georgi Matev Date: Thu, 29 Sep 2022 18:24:12 -0400 Subject: [PATCH] Fixing docs build break (#992) ## Description Apparently `go mod tidy` was not the right way to go to ensure dependencies were there when building `mdgen` ## Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Test - [ ] :computer: CI/Deployment - [ ] :hamster: Trivial/Minor ## Issue(s) ## Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- docs/Makefile | 2 +- docs/sidebars.js | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index 14466fb06..df96b51f4 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -60,7 +60,7 @@ ${MDGEN_BINARY}: $(shell find ../src -type f -name *.go) $(shell find ../src -ty --workdir ${CORSO_REPO_CONTAINER}/src \ --entrypoint /usr/local/go/bin/go \ golang:1.18 \ - mod tidy + mod download docker run --rm -it \ -v ${CORSO_REPO}:${CORSO_REPO_CONTAINER} -v ${CORSO_BUILD_DIR}:${CORSO_BUILD_DIR} \ --env GOCACHE=${CORSO_BUILD_CACHE} --env GOMODCACHE=${CORSO_BUILD_MOD} --env GOTMPDIR=${CORSO_BUILD_DIR} \ diff --git a/docs/sidebars.js b/docs/sidebars.js index dd734038b..22eba8a1d 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -26,20 +26,24 @@ const sidebars = { { type: 'category', label: 'Command Line Reference', + link: { + slug: 'cli/corso', + type: 'generated-index', + }, items: [ - 'cli/corso', 'cli/corso_repo_init_s3', 'cli/corso_repo_connect_s3', + 'cli/corso_repo_init_s3', 'cli/corso_repo_connect_s3', 'cli/corso_backup_create_exchange', 'cli/corso_backup_list_exchange', 'cli/corso_backup_details_exchange', 'cli/corso_restore_exchange', 'cli/corso_env' ] - }, + }, { type: 'category', label: 'Developer Guide', items: [ 'developers/architecture', 'developers/build', 'developers/testing', 'developers/linters' ], - }, - + }, + ], };