Skip to content

Fix doc icon for temporary v0.9 manual crates list #224

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

Closed

Conversation

sophie-h
Copy link
Contributor

Original fix is in #217, but was not applied to the temporary manual crates list.

image

Closes #223

<a href="/gtk-rs-core/stable/latest/docs/cairo">🕮</a>
<a href="/gtk-rs-core/stable/latest/docs/cairo">
<?xml version="1.0" encoding="UTF-8"?>
<svg width="181" height="105" version="1.1" viewBox="0 0 47.89 27.781" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
Copy link
Member

Choose a reason for hiding this comment

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

Instead of redeclaring the image multiple times, couldn't it be stored in a file instead?

Copy link
Member

Choose a reason for hiding this comment

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

(Even if not redeclared, it's very hard to read anything, it's supposed to be a markdown file)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a temporary (!!!) fix because we are still lacking the v0.9 docs for gtk3 in the new system (cc @bilelmoussaoui). The correct solution would just be {% include crates.html %} which generates it from a json file. But that would lead to incorrect docs links for now.

Copy link
Member

Choose a reason for hiding this comment

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

ah i always forget about those. Let me fix them :)

Copy link
Member

Choose a reason for hiding this comment

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

If you mean by that that we will generate the svg images directly into the HTML, please don't and create an image file instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then you have to fix it yourself. Coloring with filters seems like a complicated detour. I think there is also a way with iframes? But I never used it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You could also generate all svgs in the page with the required colors of course.

@@ -36,7 +36,7 @@ The following table contains the most popular crates of **gtk-rs**. More informa
{% include crates.html %}
-->

<table>
<table class="crates">
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this indent.

@sophie-h sophie-h marked this pull request as draft June 15, 2021 20:48
@sophie-h sophie-h closed this Jun 21, 2021
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.

Doc images are broken
3 participants