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

Fetching markdown files programmatically #4

Open
madjin opened this issue Jun 23, 2023 · 1 comment
Open

Fetching markdown files programmatically #4

madjin opened this issue Jun 23, 2023 · 1 comment

Comments

@madjin
Copy link
Member

madjin commented Jun 23, 2023

Idea: use github api to recursively search responses for markdown files

we usually keep everything here: https://api.github.com/repos/omigroup/gltf-extensions/contents/extensions/2.0?ref=main

example download url:
https://raw.githubusercontent.com/omigroup/gltf-extensions/main/extensions/2.0/KHR_audio/README.md

another way is to just clone the repo and grab / convert the markdown files this way

npm install mdpdf -g
git clone
mkdir docs
find extensions/ -name ".md" -exec bash -c 'mkdir -p docs/"$(dirname "{}")" && mv "{}" docs/"{}"' ;
find ./extensions -iname "
.md" -exec mdpdf '{}' ;

then clean up

this would be useful then to convert to pdf and use in gpt4 langchain stuff: https://github.com/mayooear/gpt4-pdf-chatbot-langchain

@madjin
Copy link
Member Author

madjin commented Jun 23, 2023

for now I added direct links to the raw markdown files hosted on github in txt files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant