Open thibaultamartin opened 1 year ago
Have you seen the skip_prefixes
config option in https://www.getzola.org/documentation/getting-started/configuration/ ? It might not solve the issue straightaway but if you have 10k links to GitHub that you don't need to check for example it could alleviate the issue for now.
That does seem ok to add as a feature though.
Any other issues/shortcomings with Zola for the matrix.org website?
skip_prefixes
doesn't really solve the problem for us since we can have many different addresses in the 21122 external links zola has to check.
Any other issues/shortcomings with Zola for the matrix.org website?
Zola has generally been a joy to work with! It does the job and does it well, it takes a handful of seconds to build a website it took us several minutes to build before (though in all fairness it was an outdated Gatsby, and it had been severely abused).
The main limitation I've hit was not being able to use get_page/get_section in shortcodes, which is well documented.
Shortcodes are rendered before the page's Markdown is parsed so they don't have access to the page's table of contents. Because of that, you also cannot use the get_page/get_section/get_taxonomy/get_taxonomy_term global functions. It might work while running zola serve because it has been loaded but it will fail during zola build.
A bit unfortunate, but we could work around it. Many thanks for all your work on Zola, it's a really good SSG :)
@thibaultamartin I have a draft PR up, if you want to try building my branch and testing the new configuration option (note that I have not tested it myself beyond making sure it builds).
It goes in the link checker section of the config as ignored_files
and takes a list of file globs
I have a website that has a blog section, and the blog has a lot of entries with a lot of external links. Running zola check takes several hours and makes it impossible to add to my CI.
Being able to exclude the blog directory from the links checker would be extremely useful for us!