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

Updated copy, fixed typos, merged docs #64

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
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
64 changes: 32 additions & 32 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
// @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',
autogenerate: { directory: 'guides' },
},
{
label: 'Troubleshooting',
autogenerate: { directory: 'troubleshooting' },
},
{
label: 'Command Reference',
collapsed: true,
autogenerate: { directory: 'reference' },
},
],
customCss: ['./src/tailwind.css'],
}),
tailwind({ applyBaseStyles: true }),
],
integrations: [
starlight({
title: "NodeKit",
logo: {
src: "./public/nodekit.png",
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" },
},
],
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
Loading