You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically how to manually add a non-markdown file to the MkDocs site.
I envision the user pointing to the location of the PDF file in the config, and the plugin then taking care of adding the file and a page.pdf_url parameter to every page. Then you can overwrite a page content partial.
We add an extra config param pdf_url, with the relative url from the docs/ dir. All files in docs are copied over (link).
Just need to figure out the correct link to the file. Perhaps for each page find the os.path.dirname() of the url_relative_to() the index page. Maybe there's a variable with the homepage.
The text was updated successfully, but these errors were encountered:
Basically how to manually add a non-markdown file to the MkDocs site.
I envision the user pointing to the location of the PDF file in the config, and the plugin then taking care of adding the file and a
page.pdf_url
parameter to every page. Then you can overwrite a page content partial.We could use the fontawesome icon file-pdf
We add an extra config param
pdf_url
, with the relative url from thedocs/
dir. All files indocs
are copied over (link).Just need to figure out the correct link to the file. Perhaps for each page find the
os.path.dirname()
of theurl_relative_to()
the index page. Maybe there's a variable with the homepage.The text was updated successfully, but these errors were encountered: