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

Generate figure IDs #257

Merged
merged 3 commits into from
Oct 31, 2019
Merged

Generate figure IDs #257

merged 3 commits into from
Oct 31, 2019

Conversation

mikegeyser
Copy link
Contributor

@mikegeyser mikegeyser commented Oct 30, 2019

This PR generates the Figure IDs using the figcaption text on the ID. The ID's are a little long, and I'm open to suggestions to shorten them.

Progress on #199

@mikegeyser mikegeyser added this to the SHIP IT! milestone Oct 30, 2019
@mikegeyser mikegeyser added the development Building the Almanac tech stack label Oct 30, 2019
@@ -336,7 +336,7 @@ <h2 id="adoption-of-http2">Adoption of HTTP/2</h2>
obscuresite.com are given equal weighting). There are lies, damn lies
and statistics. However, looking at other sources (for example the
<a
href="https://telemetry.mozilla.org/new-pipeline/dist.html#!cumulative=0&measure=HTTP_RESPONSE_VERSION"
href="https://telemetry.mozilla.org/new-pipeline/dist.html#!cumulative=0&amp;measure=HTTP_RESPONSE_VERSION"
Copy link
Member

Choose a reason for hiding this comment

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

This change breaks the URL. Maybe if we change the & to ? this won't happen?

@@ -192,7 +192,9 @@ <h2 id="the-state-of-performance">The state of performance</h2>
</p>
<p>So let's dive in and see what kind of insights we can find.</p>
<h3 id="fcp">FCP</h3>
<figure>
<figure
id="figure-1-distribution-of-websites-fast-average-and-slow-fcp-performance"
Copy link
Member

Choose a reason for hiding this comment

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

Honestly not a fan of these super long IDs. I think we can get by with the bare minimum of something simple like fig1 or figure-1. WDYT?

@@ -728,7 +728,7 @@ <h3 id="internationalization">Internationalization</h3>
or not the different language versions properly link to each other.
However, from looking at the low adoption of
<a
href="https://www.google.com/url?q=https://support.google.com/webmasters/answer/189077?hl%3Den&sa=D&ust=1570627963630000&usg=AFQjCNFwzwglsbysT9au_I-7ZQkwa-QvrA"
href="https://www.google.com/url?q=https://support.google.com/webmasters/answer/189077?hl%3Den&amp;sa=D&amp;ust=1570627963630000&amp;usg=AFQjCNFwzwglsbysT9au_I-7ZQkwa-QvrA"
Copy link
Member

Choose a reason for hiding this comment

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

Here we go again. Looks like the generator doesn't like &s even when they follow ? in URLs. Is this fixable?

Copy link
Member

@rviscomi rviscomi left a comment

Choose a reason for hiding this comment

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

Looks great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Building the Almanac tech stack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants