Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

broken links on https://srclib.org/install/ #283

Open
chris-ramon opened this issue Apr 15, 2016 · 0 comments
Open

broken links on https://srclib.org/install/ #283

chris-ramon opened this issue Apr 15, 2016 · 0 comments

Comments

@chris-ramon
Copy link
Contributor

chris-ramon commented Apr 15, 2016

Section Language Toolchains on https://srclib.org/install/ contains broken links which are shown in the next picture:

screen shot 2016-04-15 at 12 51 45

When trying to build the docs site using python buildsite.py won't build due to those broken links:

(docs)-> python buildsite.py
Building documentation to directory: site
Traceback (most recent call last):
File "buildsite.py", line 13, in <module>
build(config)
File "/usr/local/lib/python2.7/dist-packages/mkdocs/build.py", line 179, in build
build_pages(config)
File "/usr/local/lib/python2.7/dist-packages/mkdocs/build.py", line 150, in build_pages
html_content = post_process_html(html_content, site_navigation)
File "/usr/local/lib/python2.7/dist-packages/mkdocs/build.py", line 70, in post_process_html
html_content = re.sub(r'a href="([^"]*)"', PathToURL(nav), html_content)
File "/usr/lib/python2.7/re.py", line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/local/lib/python2.7/dist-packages/mkdocs/build.py", line 34, in __call__
assert False, msg % (source_file, target_file)
AssertionError: The page "install.md" contained a hyperlink to "toolchains/go.md" which is not listed in the "pages" configuration.

The toolchains overview page: https://srclib.org/toolchains/overview/ contains a section Available Toolchains which has working links to the toolchains information per programming language, consider a work around for this issue to update the reference of those broken links to: https://srclib.org/toolchains/{prog. language}/ respectively, since those pages contains the installation information as well.

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

No branches or pull requests

1 participant