willmcgugan / faqtory

A tool to generate FAQ.md documents and automatically suggest answers to issues
MIT License
216 stars 20 forks source link

Ensure FAQ is indexed by search engines #1

Open simonw opened 1 year ago

simonw commented 1 year ago

A frustrating thing about GitHub repositories is that GitHub have https://github.com/robots.txt configure such that only the contents of README.md can be crawled by search engines such as Google.

All other files in the repo - including FAQ.md - are blocked from being crawled!

See here:

The two potential solutions I can see for this are:

pradyunsg commented 1 year ago

Is including a link to the FAQ from the README sufficient?

All other files in the repo - including FAQ.md - are blocked from being crawled!

My reading is that tree pages are blocked, so file listings but not the individual files? If the search engine can get to the page, it’d index it — that’s my mental model at least.

willmcgugan commented 1 year ago

You can configure the FAQ.md to go where you like. For Textual I was going to put it in the docs directory, so it gets built with GitHub pages.

It would also be possible to add some kind of marker that inserted the FAQ in to the README. Although TBH I'm not sure I'd want to go to that effort. Hoping the community contributes such features!