Skip to content

Commit

Permalink
docs: guides, landing page and verbiage updates
Browse files Browse the repository at this point in the history
Co-authored-by: Tasos Bitsios <[email protected]>
Co-authored-by: Larkin Young <[email protected]>
Co-authored-by: Kyle Breeding <[email protected]>
  • Loading branch information
4 people authored and PhearZero committed Jan 14, 2025
1 parent 54391f3 commit 5f9ff86
Show file tree
Hide file tree
Showing 45 changed files with 1,056 additions and 957 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
GOOS: ${{matrix.goos}}
GOARCH: ${{matrix.goarch}}
CGO_ENABLED: 0
run: go build -o bin/algorun-${{matrix.goarch}}-${{matrix.goos}} *.go
run: go build -o bin/nodekit-${{matrix.goarch}}-${{matrix.goos}} *.go
- uses: actions/upload-artifact@master
with:
name: algorun-${{matrix.goarch}}-${{matrix.goos}}
path: bin/algorun-${{matrix.goarch}}-${{matrix.goos}}
name: nodekit-${{matrix.goarch}}-${{matrix.goos}}
path: bin/nodekit-${{matrix.goarch}}-${{matrix.goos}}
release:
needs:
- build
Expand All @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: algorun*
pattern: nodekit*
path: ./bin
- uses: go-semantic-release/action@v1
name: release
Expand All @@ -47,4 +47,4 @@ jobs:
- name: Upload Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload v${{steps.semver.outputs.version}} bin/**/*
run: gh release upload v${{steps.semver.outputs.version}} bin/**/*
18 changes: 9 additions & 9 deletions cmd/configure/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func configureNode() error {

// Check systemctl first
if algod.IsService() {
if promptWrapperYes("Algorand is installed as a service. Do you wish to edit the service file to change the data directory? (y/n)") {
if promptWrapperYes("Algorand is installed as a service. Do you wish to edit the service file to change the data directory? (y/N)") {
// Edit the service file with the user's new data directory
systemServiceConfigure = true
} else {
Expand Down Expand Up @@ -84,18 +84,18 @@ func configureNode() error {
fmt.Println("Found valid Algorand Data Directory: " + algorandData)

if systemServiceConfigure {
if promptWrapperYes("Would you like to set the ALGORAND_DATA env variable as the data directory for the systemd Algorand service? (y/n)") {
if promptWrapperYes("Would you like to set the ALGORAND_DATA env variable as the data directory for the systemd Algorand service? (y/N)") {
editAlgorandServiceFile(algorandData)
os.Exit(0)
}
}

if promptWrapperNo("Do you want to set a completely new data directory? (y/n)") {
if promptWrapperNo("Do you want to set a completely new data directory? (y/N)") {
fmt.Println("User chose not to set a completely new data directory.")
os.Exit(0)
}

if promptWrapperYes("Do you want to manually input the new data directory? (y/n)") {
if promptWrapperYes("Do you want to manually input the new data directory? (y/N)") {
newPath := promptWrapperInput("Enter the new data directory path")

if !validateAlgorandDataDir(newPath) {
Expand Down Expand Up @@ -130,7 +130,7 @@ func configureNode() error {
}

if len(paths) == 1 {
if promptWrapperYes("Do you want to set this directory as the new data directory? (y/n)") {
if promptWrapperYes("Do you want to set this directory as the new data directory? (y/N)") {
if systemServiceConfigure {
// Edit the service file
editAlgorandServiceFile(paths[0])
Expand All @@ -142,7 +142,7 @@ func configureNode() error {

} else {

if promptWrapperYes("Do you want to set one of these directories as the new data directory? (y/n)") {
if promptWrapperYes("Do you want to set one of these directories as the new data directory? (y/N)") {

selectedPath := promptWrapperSelection("Select an Algorand data directory", paths)

Expand All @@ -158,12 +158,12 @@ func configureNode() error {
}

// Deep search
if promptWrapperNo("Do you want NodeKit to do a deep search for pre-existing Algorand Data directories? (y/n)") {
fmt.Println("User chose not to search for more pre-existing Algorand Data directories. Exiting...")
if promptWrapperNo("Do you want NodeKit to do a deep search for pre-existing Algorand data directories? (y/N)") {
fmt.Println("User chose not to search for more pre-existing Algorand data directories. Exiting...")
os.Exit(0)
}

fmt.Println("Searching for pre-existing Algorand Data directories in HOME directory...")
fmt.Println("Searching for pre-existing Algorand data directories in HOME directory...")
paths = deepSearchAlgorandDataDirs()

if len(paths) == 0 {
Expand Down
1 change: 1 addition & 0 deletions docs/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.11.0
68 changes: 37 additions & 31 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'NodeKit',
logo: {
src: './public/nodekit.png',
replacesTitle: true,
},
social: {
github: 'https://github.com/algorandfoundation/nodekit',
},
sidebar: [
// {
// label: 'Guides',
// items: [
// // Each item here is one entry in the navigation menu.
// { label: 'Example Guide', slug: 'guides/example' },
// ],
// },
{
label: 'Reference',
// collapsed: true,
autogenerate: { directory: 'reference' },
},
],
customCss: ['./src/tailwind.css'],
}),
tailwind({ applyBaseStyles: true }),
],
integrations: [
starlight({
title: "NodeKit",
logo: {
light: "./public/nodekit-light.png",
dark: "./public/nodekit-dark.png",
alt: "NodeKit for Algorand",
replacesTitle: true,
},
social: {
github: "https://github.com/algorandfoundation/nodekit",
},
sidebar: [
{
label: "Guides",
autogenerate: { directory: "guides" },
},
{
label: "Troubleshooting",
link: "/troubleshooting",
},
{
label: "Command Reference",
collapsed: true,
autogenerate: { directory: "reference" },
},
],
components: {
ThemeProvider: "./src/components/CustomThemeProvider.astro",
},
customCss: ["./src/tailwind.css"],
}),
tailwind({ applyBaseStyles: true }),
],
});
10 changes: 10 additions & 0 deletions docs/ec.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers';
import mocha from '@catppuccin/vscode/themes/mocha.json' with {type: 'json'}
import latte from '@catppuccin/vscode/themes/latte.json' with {type: 'json'}
import fs from 'node:fs';

/** @type {import('@astrojs/starlight/expressive-code').StarlightExpressiveCodeOptions} */
export default {
plugins: [pluginLineNumbers()],
themes: [latte, mocha],
};
Loading

0 comments on commit 5f9ff86

Please sign in to comment.