Skip to content

Link fixes#69

Merged
p12tic merged 5 commits intop12tic:masterfrom
PeterFeicht:link-fixes
Oct 10, 2018
Merged

Link fixes#69
p12tic merged 5 commits intop12tic:masterfrom
PeterFeicht:link-fixes

Conversation

@PeterFeicht
Copy link
Copy Markdown
Contributor

This fixes two small issues:

  • A wrong link in the site CSS caused a missing icon for external links to PDF files.
  • Images have an info icon that links to the online info page for the image file.

@p12tic
Copy link
Copy Markdown
Owner

p12tic commented Oct 8, 2018

Can we have a test? Otherwise, LGTM.

@PeterFeicht
Copy link
Copy Markdown
Contributor Author

Should have thought of that, I'll add one for remove_fileinfo. I'll also split out the other thing I forgot last time.

This adds a test for the `remove_fileinfo` function, and also changes
the test input file to include the modifications made by lxml during
serialization (e.g. removing the slash in empty tags).
This splits out removal of unused external links into a separate
function and adds a test. This also adds adjustment of the favicon path
to the rearranged archive structure which was missing before.
@PeterFeicht
Copy link
Copy Markdown
Contributor Author

I split out removal of unused external links and added tests for both that and remove_fileinfo. In the process I also added adjustment of the favicon path. I noticed that you don't actually remove the favicon so this might have been an oversight, if you don't want a favicon I can remove it too.

@p12tic
Copy link
Copy Markdown
Owner

p12tic commented Oct 10, 2018

Thanks!

@p12tic p12tic merged commit a0686ef into p12tic:master Oct 10, 2018
@PeterFeicht PeterFeicht deleted the link-fixes branch October 10, 2018 17:09
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.

2 participants