From ad6c17a79d472d89b6bf886f2899b4fa22a6bee0 Mon Sep 17 00:00:00 2001 From: Max Balandat Date: Tue, 30 Apr 2019 07:34:04 -0700 Subject: [PATCH 1/2] Bump docusaurus version in package.json --- website/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/package.json b/website/package.json index 7d66debef6..e2dbb5afba 100644 --- a/website/package.json +++ b/website/package.json @@ -9,6 +9,6 @@ "rename-version": "docusaurus-rename-version" }, "devDependencies": { - "docusaurus": "^1.7.2" + "docusaurus": "^1.9.0" } } From fe7352d7551a475dc8f4cf48d0ed5e2f1b56948b Mon Sep 17 00:00:00 2001 From: Max Balandat Date: Tue, 30 Apr 2019 07:47:47 -0700 Subject: [PATCH 2/2] Hack away svg issues by copying the original svg to the build dir --- scripts/build_docs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build_docs.sh b/scripts/build_docs.sh index 61bbcb23e1..b8a73b5b84 100755 --- a/scripts/build_docs.sh +++ b/scripts/build_docs.sh @@ -84,6 +84,9 @@ if [[ $BUILD_STATIC == true ]]; then echo "Building static site" echo "-----------------------------------" yarn build + # hack to correct logo since docusaurus messes it up during build + # This needs to be done until https://github.com/facebook/Docusaurus/issues/1427 is fixed + cp static/img/botorch_logo_lockup_white.svg build/botorch/img/botorch_logo_lockup_white.svg else echo "-----------------------------------" echo "Starting local server"