From a0789ec2dce2131dcdce39e3818a2403d58d812a Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 21 May 2021 13:26:35 -0700 Subject: [PATCH 1/5] docs: fix relative links Signed-off-by: Andrea Luzzardi --- docs/index.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/index.md b/docs/index.md index 695f68ef..72f06d57 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,24 +18,22 @@ system changes. ## Learn More -* [Dagger vs. Other Software](doc/vs) -* [Dagger Programming Guide](doc/programming) -* [Dagger Operator Manual](doc/operator) - +* [Dagger vs. Other Software](vs) +* [Dagger Programming Guide](programming) +* [Dagger Operator Manual](operator) ## Download and Install -* [Install Dagger from source](doc/install) -* Binary distributions [*coming soon*] +* [Install Dagger](install) ## Community Join the [Dagger community chatroom](https://discord.gg/Rmffpmc) on Discord. We welcome beginners and experts alike! - ## Alpha disclaimer -Dagger is *alpha-quality software*. It has many bugs, the user interface is minimal, and it may change in incompatible ways at any time. If you are still willing to try it, thank you! We appreciate your help and encourage you to ask questions and report issues. - - +Dagger is *alpha-quality software*. It has many bugs, the user interface is +minimal, and it may change in incompatible ways at any time. If you are still +willing to try it, thank you! We appreciate your help and encourage you to ask +questions and report issues. From 074cafdafe680eb4231fce39bd3e285632a77e27 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 21 May 2021 13:26:47 -0700 Subject: [PATCH 2/5] docs: revamp sidebar Signed-off-by: Andrea Luzzardi --- docs/sidebar/sidebar.yml | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/docs/sidebar/sidebar.yml b/docs/sidebar/sidebar.yml index e4ac6701..7c8862eb 100644 --- a/docs/sidebar/sidebar.yml +++ b/docs/sidebar/sidebar.yml @@ -1,32 +1,24 @@ # Sidebar navigation -- label: 'Install deploy' - link: '/install' +- label: Introduction + link: "/" -- label: 'Operator' - link: '/operator' +- label: "Getting started" + link: "/install" -- label: 'Programming' - link: '/programming' +- label: "Dagger vs. Other" + link: "/vs" -- label: 'VS' - link: '/vs' - -- label: 'Getting started' - link: '/getting-started' - -- label: Usage +- label: Guides items: - - label: 'Creating docs' - link: '/usage/creating-docs' - - label: 'Navigation' - link: '/usage/navigation' - - label: 'Shadowing' - link: '/usage/shadowing' + - label: "Programming Guide" + link: "/programming" + - label: "Operator Manual" + link: "/operator" - label: More items: - - label: FAQ - link: /faq - - label: 'Github' + - label: "GitHub" link: https://github.com/dagger/dagger + - label: "Discord" + link: https://discord.gg/Rmffpmc From eabf3bec154e15d5cdb0ea6c55aba5929ade4d51 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 21 May 2021 13:26:56 -0700 Subject: [PATCH 3/5] docs: fetch tags from correct url Signed-off-by: Andrea Luzzardi --- .../gatsby-theme-docs/components/Sidebar/Select/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js index bcab8dba..129f1cb0 100644 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js +++ b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js @@ -9,8 +9,10 @@ const Select = () => { useEffect(() => { async function getTags() { - const fetchTags = await fetch('https://s3-eu-west-1.amazonaws.com/daggerdoc.humans-it.com/tags.json').then(result => result.json()); - setTagsList(fetchTags); + const fetchTags = await fetch('/tags.json').then(result => result.json()); + if (fetchTags.length > 0) { + setTagsList(fetchTags); + } } getTags() From 27cf21508af68bda528ed78cf6c77fc8adff4099 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 21 May 2021 13:36:45 -0700 Subject: [PATCH 4/5] docs: fix AWS region Signed-off-by: Andrea Luzzardi --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9674dac8..95e55fa1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,7 +18,7 @@ jobs: env: AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: "eu-east-1" + AWS_DEFAULT_REGION: "us-east-1" steps: - name: Set Tag Name From 1945fef035b395768a11f0fca5f62758f5223e4d Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 21 May 2021 13:37:09 -0700 Subject: [PATCH 5/5] docs: fix redirect url Signed-off-by: Andrea Luzzardi --- .../gatsby-theme-docs/components/Sidebar/Select/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js index 129f1cb0..28408042 100644 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js +++ b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js @@ -19,7 +19,7 @@ const Select = () => { }, []) return ( - isBrowser ? window.location.pathname = `/${e.currentTarget.value}/index.html` : null}> + isBrowser ? window.location.pathname = `/${e.currentTarget.value}` : null}> {tagsList.map(t => ( ))}