Merge pull request from aluzzardi/docs-improvements

docs improvements
This commit is contained in:
Andrea Luzzardi 2021-05-21 13:49:45 -07:00 committed by GitHub
commit 039dd1f687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 36 deletions
.github/workflows
docs
tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select

@ -18,7 +18,7 @@ jobs:
env: env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "eu-east-1" AWS_DEFAULT_REGION: "us-east-1"
steps: steps:
- name: Set Tag Name - name: Set Tag Name

@ -18,24 +18,22 @@ system changes.
## Learn More ## Learn More
* [Dagger vs. Other Software](doc/vs) * [Dagger vs. Other Software](vs)
* [Dagger Programming Guide](doc/programming) * [Dagger Programming Guide](programming)
* [Dagger Operator Manual](doc/operator) * [Dagger Operator Manual](operator)
## Download and Install ## Download and Install
* [Install Dagger from source](doc/install) * [Install Dagger](install)
* Binary distributions [*coming soon*]
## Community ## Community
Join the [Dagger community chatroom](https://discord.gg/Rmffpmc) on Discord. Join the [Dagger community chatroom](https://discord.gg/Rmffpmc) on Discord.
We welcome beginners and experts alike! We welcome beginners and experts alike!
## Alpha disclaimer ## 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.

@ -1,32 +1,24 @@
# Sidebar navigation # Sidebar navigation
- label: 'Install deploy' - label: Introduction
link: '/install' link: "/"
- label: 'Operator' - label: "Getting started"
link: '/operator' link: "/install"
- label: 'Programming' - label: "Dagger vs. Other"
link: '/programming' link: "/vs"
- label: 'VS' - label: Guides
link: '/vs'
- label: 'Getting started'
link: '/getting-started'
- label: Usage
items: items:
- label: 'Creating docs' - label: "Programming Guide"
link: '/usage/creating-docs' link: "/programming"
- label: 'Navigation' - label: "Operator Manual"
link: '/usage/navigation' link: "/operator"
- label: 'Shadowing'
link: '/usage/shadowing'
- label: More - label: More
items: items:
- label: FAQ - label: "GitHub"
link: /faq
- label: 'Github'
link: https://github.com/dagger/dagger link: https://github.com/dagger/dagger
- label: "Discord"
link: https://discord.gg/Rmffpmc

@ -9,15 +9,17 @@ const Select = () => {
useEffect(() => { useEffect(() => {
async function getTags() { async function getTags() {
const fetchTags = await fetch('https://s3-eu-west-1.amazonaws.com/daggerdoc.humans-it.com/tags.json').then(result => result.json()); const fetchTags = await fetch('/tags.json').then(result => result.json());
if (fetchTags.length > 0) {
setTagsList(fetchTags); setTagsList(fetchTags);
} }
}
getTags() getTags()
}, []) }, [])
return ( return (
<SelectStyled value={currentLocation[currentLocation.length - 1]} onChange={(e) => isBrowser ? window.location.pathname = `/${e.currentTarget.value}/index.html` : null}> <SelectStyled value={currentLocation[currentLocation.length - 1]} onChange={(e) => isBrowser ? window.location.pathname = `/${e.currentTarget.value}` : null}>
{tagsList.map(t => ( {tagsList.map(t => (
<option>{t.tag}</option> <option>{t.tag}</option>
))} ))}