new hero on mdbook #79

Closed
opened 2024-12-03 11:27:40 +00:00 by sashaastiadi · 3 comments
Owner

We're implementing new hero on mdbook, both for tfgrid book and ourworld.
book: https://git.ourworld.tf/tfgrid/info_tfgrid

each book , on: https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/development/books
has new script setting, so what to do for each book:

  1. Delete any book_name/context.md

  2. Delete any book_name/sshkey.md

  3. modify info_tfgrid/heroscript/book_script_name with new script format as below, replace file content with this the same exact format;


!!mdbook.export 
    title:'book title' 
    name:'folder_name' 
    description:'describe what the book is foor'
    summary_url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/folder_name'
    collections:'collection_name, collection_name' 
    production:0 //means we put it in summary


We're implementing new hero on mdbook, both for tfgrid book and ourworld. book: https://git.ourworld.tf/tfgrid/info_tfgrid each book , on: https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/development/books has new script setting, so what to do for each book: 1. Delete any book_name/context.md 2. Delete any book_name/sshkey.md 3. modify info_tfgrid/heroscript/book_script_name with new script format as below, replace file content with this the same exact format; ```js !!mdbook.export title:'book title' name:'folder_name' description:'describe what the book is foor' summary_url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/folder_name' collections:'collection_name, collection_name' production:0 //means we put it in summary ``` --- - [x] @timur does ourworld books - [x] @marionrvrn does the tfgrid/development - [x] @sashaastiadi does tfgrid/main
sashaastiadi added this to the Website & Wiki Project 2025 (MOVED & ARCHIVED) project 2024-12-03 11:27:46 +00:00
marionrvrn was assigned by sashaastiadi 2024-12-03 11:27:53 +00:00
timur was assigned by sashaastiadi 2024-12-03 11:27:53 +00:00
sashaastiadi self-assigned this 2024-12-03 11:27:53 +00:00
Author
Owner

@marionrvrn @timur
chatgpt command:

js

!!book.generate
name:'kristof'
title:'OurWorld Kristofs Personal Page'
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/kristof'
production: true

!!doctree.add
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/def'

!!doctree.add
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/tech'

!!doctree.add
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/partners_utilization'

// !!doctree.add
// url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/projectmycelium'

!!doctree.add
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/why'

!!doctree.add
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/kristof'

!!doctree.add
url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/values'

change above code to follow this new format:


!!mdbook.export 
    title:'book title' 
    name:'folder_name' 
    description:'describe what the book is foor'
    summary_url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/folder_name'
    collections:'collection_name, collection_name' 
    production:0 //means we put it in summary

@marionrvrn @timur chatgpt command: js !!book.generate name:'kristof' title:'OurWorld Kristofs Personal Page' url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/kristof' production: true !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/def' !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/tech' !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/partners_utilization' // !!doctree.add // url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/projectmycelium' !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/why' !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/kristof' !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections/values' change above code to follow this new format: ```js !!mdbook.export title:'book title' name:'folder_name' description:'describe what the book is foor' summary_url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/folder_name' collections:'collection_name, collection_name' production:0 //means we put it in summary ```
Member

Done for tfgrid/development

Done for tfgrid/development
Author
Owner
https://git.ourworld.tf/tfgrid/info_tfgrid/pulls/164 done, pr @timur
sashaastiadi modified the project from Website & Wiki Project 2025 (MOVED & ARCHIVED) to OW Website & Wiki Project 2025 2025-03-20 14:18:42 +00:00
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ourworld_web/circle_web_presence#79
No description provided.