file not found when md.file from other collections added to 'legal' #13

Closed
opened 2024-02-28 22:18:12 +00:00 by sashaastiadi · 2 comments
Owner

we're working on fixing errors on new 'legal' book.
the problem is when a link is mentioned on the book, the 'legal' book is not pulling any md files from other collections

for example:

on legal/definitions_legal.md, we mention ThreeFold Tech. the collection 'threefold' exists, and the md file threefold_tech.md exists, still it returns 404 page not found when previewed.

steps to check / fix:

  • check if the legal/ book_collections.md script is correct 👍 :

Screenshot 2024-02-29 at 00.57.56.png


!!book.generate name:'legal' title:'Legal'
        url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/legal'


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



Screenshot 2024-02-29 at 00.59.08.png

url error showing: file:///Users/sashaastiadi/hero/www/info/legal/legal/threefold/threefold_tech
pointing error because threefol_tech.md is not in collections/legal/threefold, it should be going to collections/threefold
Screenshot 2024-02-29 at 01.07.26.png

we're working on fixing errors on new 'legal' book. the problem is when a [link](name.md) is mentioned on the book, the 'legal' book is not pulling any md files from other collections for example: on legal/definitions_legal.md, we mention [ThreeFold Tech](threefold/threefold_tech). the collection 'threefold' exists, and the md file threefold_tech.md exists, still it returns 404 page not found when previewed. steps to check / fix: - [x] check if the legal/ book_collections.md script is correct 👍 : ![Screenshot 2024-02-29 at 00.57.56.png](/attachments/6268f004-37d9-4755-bb24-64df193656e2) ```js !!book.generate name:'legal' title:'Legal' url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/books/legal' !!doctree.add url:'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/collections' ``` - [x] open and edit mdbook, ran the cmd : hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/legal -e - [ ] found error: page not found: threefold:threefold_tech.md - [ ] added a folder called 'collections/threefold' and a file name threefold_tech.md, saved -- should be fixing the error, but not ![Screenshot 2024-02-29 at 00.59.08.png](/attachments/e8ea6a76-3456-4f5d-a876-7ab6eb865d2b) - [ ] open and edit mdbook, ran the cmd again : hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/legal -e - [ ] error still found: page not found, but now it says not found: legal/threefold_tech.md . why cant it read that the file is under 'threefold' collection, not under 'legal' collection? - [ ] go to user/hero/www/info/legal/legal/definitions_legal.html, find the [threefold tech](threefold/threefold_tech), clicked still returned 404 not found. ![Screenshot 2024-02-29 at 01.08.13.png](/attachments/30b8fe7e-1893-4f93-ad4d-f056551261ec) url error showing: file:///Users/sashaastiadi/hero/www/info/legal/legal/threefold/threefold_tech pointing error because threefol_tech.md is not in collections/legal/threefold, it should be going to collections/threefold ![Screenshot 2024-02-29 at 01.07.26.png](/attachments/c9877a0e-a374-40db-a982-9ee908b2762b)
sashaastiadi changed title from file not found when collections added to file not found when md.file from other collections added to 'legal' 2024-02-28 22:23:37 +00:00
Owner

image

you have to add .collection in a folder to make sure it gets picked up

![image](/attachments/70729daf-e0f2-46df-8187-5e6a0a2b7eb3) you have to add .collection in a folder to make sure it gets picked up
Owner

well it's now fixed! thanks for the help. closing

well it's now fixed! thanks for the help. closing
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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: tfgrid/info_tfgrid#13
No description provided.