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

Fix pdf links #1420

Merged
merged 1 commit into from Feb 7, 2022
Merged

Fix pdf links #1420

merged 1 commit into from Feb 7, 2022

Conversation

jennifermklein
Copy link
Contributor

closes #1417

What is included in this PR?

I noticed that the link on the Contributing to ODK Docs page to Download this documentation as a PDF did not work and would yield a "Failed - No file" message in the download bar. I updated the link in the footer.html file to include the entire link an incorrect path isn't inadvertently used.

What is left to be done in the addressed issue?

Confirm correct link is being used and correct document is being accessed.

Dockerfile Outdated
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3.9.7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for separating out changes into little pull requests! Now that the version change has been merged, you can git rebase upstream/master and then git push --force and this commit should no longer be visible here.

@@ -11,7 +11,7 @@
{% endif %}

<hr/>
<p class="footerText"><a href="_downloads/ODK-Documentation.pdf" download>Download this documentation as a PDF.</a></p>
<p class="footerText"><a href="https://docs.getodk.org/_downloads/ODK-Documentation.pdf" download>Download this documentation as a PDF.</a></p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for the published version! But it will give a false sense of the world with a set of docs hosted somewhere else or locally. Ideally this could dynamically use the base url.

@yanokwa yanokwa merged commit d229ec0 into getodk:master Feb 7, 2022
@yanokwa
Copy link
Member

yanokwa commented Feb 7, 2022

I think it's better we flip things around here. That is, merge the fix and file an issue to reduce the use of absolute paths. I'll do that now..

@getodk getodk deleted a comment from Aviii24x7 Nov 3, 2023
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

Successfully merging this pull request may close these issues.

Link to download "Contributing to ODK Docs" documentation as PDF fails
3 participants