From 9b7b9f50c44a80e4a0a61f14c334ef6a0bed9d72 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 13 Jun 2024 21:19:18 -0400 Subject: [PATCH] farmers update toc --- books/farmers/SUMMARY.md | 52 +++++++++++++------------- books/library/SUMMARY.md | 1 + books/library/sync_production.sh | 5 +++ collections/library/.collection | 0 collections/library/library.md | 11 ++++++ heroscript/library/book_collections.md | 10 +++++ heroscript/library/context.md | 11 ++++++ heroscript/library/sshkey.md | 14 +++++++ 8 files changed, 78 insertions(+), 26 deletions(-) create mode 100644 books/library/SUMMARY.md create mode 100755 books/library/sync_production.sh create mode 100644 collections/library/.collection create mode 100644 collections/library/library.md create mode 100644 heroscript/library/book_collections.md create mode 100644 heroscript/library/context.md create mode 100644 heroscript/library/sshkey.md diff --git a/books/farmers/SUMMARY.md b/books/farmers/SUMMARY.md index adcf025..dee88de 100644 --- a/books/farmers/SUMMARY.md +++ b/books/farmers/SUMMARY.md @@ -1,30 +1,30 @@ - [Table of Contents](farmers/farmers_book_toc.md) -- [Build a 3Node](3node_building.md) - - [1. Create a Farm](1_create_farm.md) - - [2. Create a Zero-OS Bootstrap Image](2_bootstrap_image.md) - - [3. Set the Hardware](3_set_hardware.md) - - [4. Wipe All the Disks](4_wipe_all_disks.md) - - [5. Set the BIOS/UEFI](5_set_bios_uefi.md) - - [6. Boot the 3Node](6_boot_3node.md) -- [Farming Optimization](farming_optimization.md) - - [GPU Farming](gpu_farming.md) - - [Set Additional Fees](set_additional_fees.md) - - [Minting Receipts](minting_receipts.md) - - [Minting Periods](minting_periods.md) - - [Room Parameters](farm_room_parameters.md) - - [Farming Costs](farming_costs.md) - - [Calculate Your ROI](calculate_roi.md) - - [Farming Requirements](farming_requirements.md) -- [Advanced Networking](advanced_networking_toc.md) - - [Networking Overview](networking_overview.md) - - [Network Considerations](network_considerations.md) - - [Network Setup](network_setup.md) -- [Farmerbot](farmerbot_intro.md) - - [Quick Guide](farmerbot_quick.md) - - [Additional Information](farmerbot_information.md) - - [Minting and the Farmerbot](farmerbot_minting.md) -- [Node Status Bot](node_status_bot.md) -- [Farming Troubleshooting](farming_troubleshooting.md) +- [Build a 3Node](farmers/3node_building/3node_building.md) + - [1. Create a Farm](farmers/3node_building/1_create_farm.md) + - [2. Create a Zero-OS Bootstrap Image](farmers/3node_building/2_bootstrap_image.md) + - [3. Set the Hardware](farmers/3node_building/3_set_hardware.md) + - [4. Wipe All the Disks](farmers/3node_building/4_wipe_all_disks.md) + - [5. Set the BIOS/UEFI](farmers/3node_building/5_set_bios_uefi.md) + - [6. Boot the 3Node](farmers/3node_building/6_boot_3node.md) +- [Farming Optimization](farmers/farming_optimization/farming_optimization.md) + - [GPU Farming](farmers/3node_building/gpu_farming.md) + - [Set Additional Fees](farmers/farming_optimization/set_additional_fees.md) + - [Minting Receipts](farmers/3node_building/minting_receipts.md) + - [Minting Periods](farmers/farming_optimization/minting_periods.md) + - [Room Parameters](farmers/farming_optimization/farm_room_parameters.md) + - [Farming Costs](farmers/farming_optimization/farming_costs.md) + - [Calculate Your ROI](farmers/farming_optimization/calculate_roi.md) + - [Farming Requirements](farmers/farming_optimization/farming_requirements.md) +- [Advanced Networking](farmers/advanced_networking/advanced_networking_toc.md) + - [Networking Overview](farmers/advanced_networking/networking_overview.md) + - [Network Considerations](farmers/advanced_networking/network_considerations.md) + - [Network Setup](farmers/advanced_networking/network_setup.md) +- [Farmerbot](farmers/farmerbot/farmerbot_intro.md) + - [Quick Guide](farmers/farmerbot/farmerbot_quick.md) + - [Additional Information](farmers/farmerbot/farmerbot_information.md) + - [Minting and the Farmerbot](farmers/farmerbot/farmerbot_minting.md) +- [Node Status Bot](farmers/node_status_bot/node_status_bot.md) +- [Farming Troubleshooting](farmers/farming_troubleshooting.md) - [ThreeFold Dashboard](dashboard/dashboard.md) - [Wallet Connector](dashboard/wallet_connector.md) - [TFGrid](dashboard/tfgrid/tfgrid.md) diff --git a/books/library/SUMMARY.md b/books/library/SUMMARY.md new file mode 100644 index 0000000..2528692 --- /dev/null +++ b/books/library/SUMMARY.md @@ -0,0 +1 @@ +- [Library](library/library.md) \ No newline at end of file diff --git a/books/library/sync_production.sh b/books/library/sync_production.sh new file mode 100755 index 0000000..c2e93dc --- /dev/null +++ b/books/library/sync_production.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -ex +export NAME=library +hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/manual/heroscript/$NAME +rsync -rv ~/hero/www/info/$NAME/ root@info.ourworld.tf:/root/hero/www/info/$NAME/ diff --git a/collections/library/.collection b/collections/library/.collection new file mode 100644 index 0000000..e69de29 diff --git a/collections/library/library.md b/collections/library/library.md new file mode 100644 index 0000000..29eb165 --- /dev/null +++ b/collections/library/library.md @@ -0,0 +1,11 @@ +

ThreeFold Library

+ +The ThreeFold library contains links to major ThreeFold books. Have fun reading on the new Internet! + +

Table of Contents

+ +- [Manual](https://threefold.info/manual) +- [Farmers Book](https://threefold.info/farmers) +- [Developers Book](https://threefold.info/developers) +- [System Administrators Book](https://threefold.info/system_administrators) +- [Knowledge Base](https://threefold.info/knowledge_base) \ No newline at end of file diff --git a/heroscript/library/book_collections.md b/heroscript/library/book_collections.md new file mode 100644 index 0000000..104f058 --- /dev/null +++ b/heroscript/library/book_collections.md @@ -0,0 +1,10 @@ +```js + +!!book.generate name:'library' title:'ThreeFold System Administrators Manual' printbook:false foldlevel:0 + url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/library' + +!!doctree.add + url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/library' + +``` + diff --git a/heroscript/library/context.md b/heroscript/library/context.md new file mode 100644 index 0000000..a8f5892 --- /dev/null +++ b/heroscript/library/context.md @@ -0,0 +1,11 @@ + +```js + +!!books.configure + buildroot:'~/hero/var/mdbuild' + publishroot:'~/hero/www/info' + install:true + reset:false + +``` + diff --git a/heroscript/library/sshkey.md b/heroscript/library/sshkey.md new file mode 100644 index 0000000..85acfe6 --- /dev/null +++ b/heroscript/library/sshkey.md @@ -0,0 +1,14 @@ + +```js +!!sshagent.key_add + name:'books' + privkey:' + -----BEGIN OPENSSH PRIVATE KEY----- + b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW + QyNTUxOQAAACDXf9Z/2AH8/8a1ppagCplQdhWyQ8wZAieUw3nNcxsDiQAAAIhb3ybRW98m + 0QAAAAtzc2gtZWQyNTUxOQAAACDXf9Z/2AH8/8a1ppagCplQdhWyQ8wZAieUw3nNcxsDiQ + AAAEC+fcDBPqdJHlJOQJ2zXhU2FztKAIl3TmWkaGCPnyts49d/1n/YAfz/xrWmlqAKmVB2 + FbJDzBkCJ5TDec1zGwOJAAAABWJvb2tz + -----END OPENSSH PRIVATE KEY----- + ' +``` \ No newline at end of file