Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Docs reorganization into Main #334

Merged
merged 88 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
5ddfdfe
workflow: increase preview expiry from 7d to 30d
szczys Nov 20, 2023
77e4193
reorg: move hardware section under firmware
szczys Nov 20, 2023
54cc5c8
reorg: rename cloud section to device-management
szczys Nov 21, 2023
bf3f5ec
reorg: fix hardware slugs, links; rebuild catalog
szczys Nov 21, 2023
d72e67a
reorg: add data-management section
szczys Nov 21, 2023
9c89b73
reorg: move Output Streams into Data Management
szczys Nov 21, 2023
dd5d271
remove Concepts
szczys Nov 21, 2023
017312c
reorg: Move Logging, OTA, and Settings up a level
szczys Nov 21, 2023
f40c719
reorg: move LightDB to data-management
szczys Nov 21, 2023
9baf6ca
css: add Golioth brand colors and use them
szczys Nov 25, 2023
1770b02
css: add Akkurat font
szczys Nov 25, 2023
eccaf22
landing-page: show platform support matrix
szczys Nov 27, 2023
d7bce54
landing-page: update summary and navigation
szczys Nov 27, 2023
8e7d95f
landing-page: add overview video
szczys Nov 27, 2023
e5d664e
rename: data-management to data-handling
szczys Nov 27, 2023
44d9083
landing-page: fix link to data-handling
szczys Nov 28, 2023
05469e7
lightmode css: fix swagger Authorize dialog
szczys Nov 26, 2023
6453276
css: fix swagger styling
szczys Nov 26, 2023
25b5079
css: change code block background for branding
szczys Nov 28, 2023
c265877
getting-started: Use console overview for section
szczys Nov 21, 2023
f51ad1c
getting-started: streamline the web console
szczys Nov 21, 2023
149cb32
move CLI walkthrough to reference section
szczys Nov 22, 2023
9d06ac1
getting started: add Device Examples section
szczys Nov 22, 2023
89a73c3
workflow: add robots.txt to dev deploy
szczys Nov 28, 2023
5c0adc4
css: mode dark definitions up to top
szczys Nov 30, 2023
41ced5b
remove: old index page and styling
szczys Nov 30, 2023
1a6da42
css: used color instead of image for navbar border
szczys Nov 30, 2023
877938b
css: fix menu and navbar colors
szczys Dec 1, 2023
6c886b2
rename data-handling to data-routing
szczys Nov 30, 2023
433b2ac
rename stored-data to application-services
szczys Nov 30, 2023
7256453
firmware: add sections for build environment
szczys Nov 27, 2023
89a3461
firmware: Add setup for Zephyr and NCS
szczys Nov 27, 2023
4ef328a
remove: hardware specific Zephyr/NCS install
szczys Nov 27, 2023
3712118
firmware: Add setup for ESP-IDF
szczys Nov 28, 2023
935b4a1
getting-started: move build-environment setup here
szczys Nov 30, 2023
48470cc
firmware: remove build-environment sections
szczys Dec 1, 2023
c85a09d
getting-started: move ESP-IDF assets here
szczys Dec 1, 2023
757fb78
Update zephyr.md
ChrisGammell Dec 4, 2023
292f726
disable blog:
szczys Dec 4, 2023
b63d2d7
firebase: redirect hardware catalog pages
szczys Dec 5, 2023
ce8ca94
scripts: add test for redirects
szczys Dec 5, 2023
547c25b
scripts: fix closing slash detection
szczys Dec 7, 2023
22e05c3
redirect: hardware landing page
szczys Dec 8, 2023
7f2fe0d
redirect: output streams
szczys Dec 8, 2023
08d4b1e
redirect: Cloud Services; LightDB State/Stream
szczys Dec 8, 2023
c530f5c
redirect: remaining cloud pages
szczys Dec 8, 2023
5e03e76
scripts: document the redirect script
szczys Dec 8, 2023
9669fe9
redirect: esp32 quickstart pages
szczys Dec 8, 2023
bf9523d
quickstart: correct set-up-espidf filename
szczys Dec 9, 2023
b78f26d
scripts: correctly implement glob for redirects
szczys Dec 9, 2023
5a14cfb
redirect: blog to blog site
szczys Dec 9, 2023
6231f9f
redirect: commandline tools section
szczys Dec 9, 2023
d69b151
redirect: getting started console section
szczys Dec 11, 2023
cdb5270
remove unused partials
szczys Dec 11, 2023
3f53aaa
redirect old_index to landing page
szczys Dec 11, 2023
6db85f8
redirect fundamentals section
szczys Dec 11, 2023
a2fb5b8
css: fix lightmode navigation chevrons
szczys Dec 11, 2023
8ffdecf
footer: add forum and clean up
szczys Dec 11, 2023
8cb7bfa
admonitions: add golioth admonition
szczys Nov 25, 2023
5ecadd6
event-types: fix overview page slug
szczys Dec 12, 2023
bb897eb
precompiled binaries: flesh out summary page
szczys Jan 2, 2024
bf17dbe
getting-started: add Thingy91 precompiled binary
szczys Jan 2, 2024
4d0a913
Docusaurus: update to v3.0.1
szczys Jan 2, 2024
e775e06
precompiled-binaries: remove nRF9160/7002
szczys Jan 2, 2024
f8b51c4
getting-started: update ESP-IDF summary page
szczys Jan 2, 2024
228008c
getting-started: fix esp-idf clone commands
szczys Jan 2, 2024
a0323cc
getting-started: fix code block highlighting
szczys Jan 2, 2024
e979a0a
getting-started: create zephyr section
szczys Jan 2, 2024
fd8fc64
getting started: zephyr: remove fish-specific cmd
szczys Jan 3, 2024
514998e
getting started: zephyr: use Golioth Firmware SDK
szczys Jan 3, 2024
af994d1
getting-started: zephyr: build samples
szczys Jan 3, 2024
0c07e2a
getting started: NCS: create new section
szczys Jan 3, 2024
31d8fef
getting started: NCS: update install guide
szczys Jan 3, 2024
d241d52
partials: pass workspace directory as property
szczys Jan 3, 2024
a45ce1b
getting started: NCS: wrap long lines
szczys Jan 3, 2024
4f44fc8
getting started: NCS: add samples guide
szczys Jan 3, 2024
c684d08
data routing: update summary page
szczys Jan 3, 2024
bfd0418
device management: update landing page
szczys Jan 3, 2024
13d44dc
getting started: update summary page
szczys Jan 3, 2024
d15634c
redirect: add pricing tiers, remove old toolchain
szczys Jan 4, 2024
317b6a6
redirects: copy dev redirects to prod
szczys Jan 4, 2024
3fd5211
partials: move partials-common to _partials-common
szczys Jan 4, 2024
52a4b47
redirect: redirect all partials to home
szczys Jan 4, 2024
d9825c7
redirect: remove erroneous domain addr from source
szczys Jan 4, 2024
4023201
redirects: nrf91 and rt1060
szczys Jan 4, 2024
0b5ca7c
virtual devices: fix missing s in URL
szczys Jan 4, 2024
93892c2
redirects: properly redirect virtual-device(s)
szczys Jan 4, 2024
b762423
fix: typos
MarkoPura Jan 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .github/workflows/firebase-hosting-merge-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.9.0
- run: npm install && npm run build:dev
- name: Build Docusaurus
run: npm install && npm run build:dev
- name: Add robots.txt for Dev site only
run: echo -e ${{ format('User-agent{0} *\\nDisallow{1} /', ':', ':') }} > build/robots.txt
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GOLIOTH }}'
channelId: live
projectId: golioth
target: docs-dev
expires: 30d
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ jobs:
channelId: live
projectId: golioth
target: docs-prod
expires: 30d
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
1 change: 1 addition & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ jobs:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_GOLIOTH }}'
projectId: golioth
target: docs-dev
expires: 30d
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The next step is to connect a device to Golioth using either the Golioth
Firmware SDK or the Golioth Zephyr SDK.

## Next: [Hardware Overview](/hardware)
## Next: [Hardware Overview](/firmware/hardware)
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ values={[
```
sudo apt update
sudo apt-get install git wget flex bison gperf python3 python3-venv \
python3-pip python3-setuptools cmake ninja-build ccache libffi-dev
python3-pip python3-setuptools cmake ninja-build ccache libffi-dev \
libssl-dev dfu-util libusb-1.0-0
```

Expand All @@ -26,10 +26,8 @@ sudo apt-get install git wget flex bison gperf python3 python3-venv \
```console
mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
git clone --recursive https://github.com/espressif/esp-idf.git -b v5.1.1
cd esp-idf
git checkout v4.4.1
git submodule update --init --recursive
./install.sh all
```

Expand All @@ -51,10 +49,8 @@ sudo easy_install pip
```console
mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
git clone --recursive https://github.com/espressif/esp-idf.git -b v5.1.1
cd esp-idf
git checkout v4.4.1
git submodule update --init --recursive
./install.sh all
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ values={[

<TabItem value="linux">

#### 1. Clone the Golioth Firmware SDK repository and update submodules
#### Clone the Golioth Firmware SDK repository and update submodules recursively

```console
cd ~
git clone --recursive https://github.com/golioth/golioth-firmware-sdk.git
cd golioth-firmware-sdk
git submodule update --init --recursive
git clone --recursive https://github.com/golioth/golioth-firmware-sdk.git -b v0.9.0
```

</TabItem>
Expand All @@ -29,9 +27,7 @@ git submodule update --init --recursive

```console
cd ~
git clone --recursive https://github.com/golioth/golioth-firmware-sdk.git
cd golioth-firmware-sdk
git submodule update --init --recursive
git clone --recursive https://github.com/golioth/golioth-firmware-sdk.git -b v0.9.0
```

</TabItem>
Expand All @@ -42,9 +38,7 @@ git submodule update --init --recursive

```console
cd %HOMEPATH%
git clone --recursive https://github.com/golioth/golioth-firmware-sdk.git
cd golioth-firmware-sdk
git submodule update --init --recursive
git clone --recursive https://github.com/golioth/golioth-firmware-sdk.git -b v0.9.0
```

</TabItem>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TabItem from '@theme/TabItem';

```
cd ~
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mf west-ncs.yml ~/golioth-ncs-workspace
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mr v0.9.0 --mf west-ncs.yml ~/golioth-ncs-workspace
cd golioth-ncs-workspace
west update
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TabItem from '@theme/TabItem';

```
cd %HOMEPATH%
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mf west-ncs.yml %HOMEPATH%/golioth-ncs-workspace
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mr v0.9.0 --mf west-ncs.yml %HOMEPATH%/golioth-ncs-workspace
cd golioth-ncs-workspace
west update
```
Expand Down
32 changes: 32 additions & 0 deletions docs/_partials-common/ncs-install-golioth-firmware-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

With `west` installed, grab the Golioth NCS SDK:

<Tabs
groupId="os"
defaultValue="linux"
values={[
{label: 'Linux', value: 'linux'},
{label: 'MacOS', value: 'macos'},
{label: 'Windows', value: 'windows'},
]}>

import InstallNRFSDKUnix from '/docs/_partials-common/ncs-install-golioth-firmware-sdk-for-unix.md'
import InstallNRFSDKWindows from '/docs/_partials-common/ncs-install-golioth-firmware-sdk-for-windows.md'

<TabItem value="linux">
<InstallNRFSDKUnix/>
</TabItem>

<TabItem value="macos">
<InstallNRFSDKUnix/>
</TabItem>

<TabItem value="windows">
<InstallNRFSDKWindows/>
</TabItem>
</Tabs>



13 changes: 13 additions & 0 deletions docs/_partials-common/prerequisites-device.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Prerequisites

- `goliothctl` and `west` installed
- Authenticated with Golioth - see
[Authentication](/reference/command-line-tools/tutorial/authentication)
- Have a project - see [Create a
Project](/reference/command-line-tools/tutorial/create-project)
- Have a provisioned device and credential for it - see [Authorizing
Devices](/reference/command-line-tools/tutorial/authorize-devices)
Zephyr](/getting-started/device-examples/compile-example-code/zephyr) page for the
ESP32.
- A toolchain installed. In this guide, the toolchain for the ESP32 will be
used.
9 changes: 9 additions & 0 deletions docs/_partials-common/prerequisites-platform-setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Prerequisites

- `goliothctl` and `west` installed
- Authenticated with Golioth - see
[Authentication](/reference/command-line-tools/tutorial/authentication)
- Have a project - see [Create a
Project](/reference/command-line-tools/tutorial/create-project)
- Have a provisioned device and credential for it - see [Authorizing
Devices](/reference/command-line-tools/tutorial/manage-devices)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

export
<Tabs
groupId="os"
defaultValue="linux"
Expand All @@ -14,25 +15,35 @@ values={[
<TabItem value="linux">

<CodeBlock language="bash">
cd ~/golioth-zephyr-workspace/zephyr<br />
cd ~/golioth-zephyr-workspace/zephyr
west build -b {props.board} samples/basic/minimal -p
</CodeBlock>

</TabItem>
<TabItem value="macos">

<CodeBlock language="bash">
cd ~/golioth-zephyr-workspace/zephyr<br />
cd ~/golioth-zephyr-workspace/zephyr
west build -b {props.board} samples/basic/minimal -p
</CodeBlock>

</TabItem>
<TabItem value="windows">

<CodeBlock language="bash">
cd C:\golioth-zephyr-workspace\zephyr<br />
cd C:\golioth-zephyr-workspace\zephyr
west build -b {props.board} samples\basic\minimal -p
</CodeBlock>

</TabItem>
</Tabs>

<details>
<summary>Show me how to list all Zephyr supported boards</summary>

If you don't know the name for your board, list all options using West:

```
west boards
```
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ values={[
{label: 'Windows', value: 'windows'},
]}>

import SetupZephyrUnix from '/docs/partials-common/setup-zephyr-unix.md'
import SetupZephyrUnix from '/docs/_partials-common/setup-zephyr-unix.md'

<TabItem value="linux">

Expand All @@ -28,7 +28,7 @@ sudo apt install --no-install-recommends git cmake ninja-build gperf \
make gcc gcc-multilib g++-multilib libsdl2-dev
```

<SetupZephyrUnix />
<SetupZephyrUnix workspace_directory="golioth-ncs-workspace" />

</TabItem>
<TabItem value="macos">
Expand All @@ -39,14 +39,14 @@ Start by installing dependencies with `brew`:
brew install cmake ninja gperf python3 ccache qemu dtc
```

<SetupZephyrUnix />
<SetupZephyrUnix workspace_directory="golioth-ncs-workspace" />

</TabItem>
<TabItem value="windows">

import SetupWestNRF91Windows from '/docs/hardware/4-nrf91/2-zephyr-quickstart/\_partials/setup-west-nrf91-windows.md'
import SetupWestNRF91Windows from '/docs/_partials-common/setup-west-nrf91-windows.md'

<SetupWestNRF91Windows />
<SetupWestNRF91Windows workspace_directory="golioth-ncs-workspace" />

</TabItem>
</Tabs>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

We recommend creating a `python3` virtual environment to avoid running into
tooling incompatibilities.

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs
groupId="west-installation"
defaultValue="global"
Expand All @@ -19,17 +19,15 @@ Create a new version environment:
Even though we haven't pulled down Zephyr yet, we can create the virtual environment in the place where we _will_ pull
down Zephyr.

```
python3 -m venv ~/golioth-zephyr-workspace/.venv
```
<CodeBlock>
python3 -m venv ~/{props.workspace_directory}/.venv
</CodeBlock>

Activate the virtual environment:

```
source ~/golioth-zephyr-workspace/.venv/bin/activate
# OR, if you're using the fish shell, run
source ~/golioth-zephyr-workspace/.venv/bin/activate.fish
```
<CodeBlock>
source ~/{props.workspace_directory}/.venv/bin/activate
</CodeBlock>

Whenever the virtual environment is active, your shell's prompt will be prefixed with `(.venv)`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ values={[

```shell
cd c:\
python -m venv golioth-zephyr-workspace\.venv
python -m venv {props.workspace_directory}\.venv
```

2. Activate the virtual environment:

```shell
c:\golioth-zephyr-workspace\.venv\Scripts\activate.bat
c:\{props.workspace_directory}\.venv\Scripts\activate.bat
```

Once activated your shell will be prefixed with `(.venv)`. The virtual environment can be deactivated at any time by running `deactivate`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cmake --version

If the Kitware repository doesn't work for you (ie: your system is not running Ubuntu 20.04), you can [build the stable version of CMake from source](https://cmake.org/install/).

<SetupZephyrUnix />
<SetupZephyrUnix workspace_directory="golioth-zephyr-workspace" />

</TabItem>
<TabItem value="macos">
Expand All @@ -58,7 +58,7 @@ Start by installing dependencies with `brew`:
brew install cmake ninja gperf python3 ccache qemu dtc
```

<SetupZephyrUnix />
<SetupZephyrUnix workspace_directory="golioth-zephyr-workspace" />

</TabItem>
<TabItem value="windows">
Expand Down Expand Up @@ -99,7 +99,7 @@ The [chocolatey](https://chocolatey.org/) package manager needs to be installed

import SetupZephyrWindows from './setup-zephyr-windows.md'

<SetupZephyrWindows />
<SetupZephyrWindows workspace_directory="golioth-zephyr-workspace" />

</TabItem>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Depending on your internet and I/O speed, `west update` can take upwards of 5 or

```
cd ~
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mf west-zephyr.yml ~/golioth-zephyr-workspace
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mr v0.9.0 --mf west-zephyr.yml ~/golioth-zephyr-workspace
cd golioth-zephyr-workspace
west update
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import TabItem from '@theme/TabItem';

```shell
cd c:\
west init -m https://github.com/golioth/golioth-zephyr-sdk.git --mf west-zephyr.yml golioth-zephyr-workspace
cd golioth-zephyr-workspace
west init -m https://github.com/golioth/golioth-firmware-sdk.git --mr v0.9.0 --mf west-zephyr.yml golioth-zephyr-workspace
west update
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ values={[
{label: 'Windows', value: 'windows'},
]}>

import InstallZephyrSDKUnix from './install-zephyr-sdk-unix.md'
import InstallZephyrSDKWindows from './install-zephyr-sdk-windows.md'
import InstallGoliothSDKUnix from './zephyr-install-golioth-firmware-sdk-for-unix.md'
import InstallGoliothSDKWindows from './zephyr-install-golioth-firmware-sdk-for-windows.md'

<TabItem value="linux">
<InstallZephyrSDKUnix/>
<InstallGoliothSDKUnix/>
</TabItem>

<TabItem value="macos">
<InstallZephyrSDKUnix/>
<InstallGoliothSDKUnix/>
</TabItem>

<TabItem value="windows">
<InstallZephyrSDKWindows/>
<InstallGoliothSDKWindows/>
</TabItem>
</Tabs>
Loading