Skip to content

Commit a50b0f2

Browse files
Moved Methodology (#280)
1 parent b4de310 commit a50b0f2

14 files changed

Lines changed: 452 additions & 298 deletions

packages/docs/src/components/ClientSideRenderedStatsMethodologyNotes.astro

Lines changed: 0 additions & 44 deletions
This file was deleted.

packages/docs/src/components/CoreWebVitalsMethodologyNotes.astro

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/docs/src/components/DetailsLink.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { href, label } = Astro.props
88
---
99

1010
<p class="details-link">
11-
For full details and methodology, see <a href={href}>{label}</a>.
11+
Methodology: <a href={href}>{label}</a>.
1212
</p>
1313

1414
<style>

packages/docs/src/components/MethodologyNotes.astro

Lines changed: 0 additions & 68 deletions
This file was deleted.

packages/docs/src/components/MethodologyTag.astro

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/docs/src/components/Navbar.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const pathname = Astro.url.pathname
2020
class={`nav-link${pathname === '/run-time' ? ' nav-link--active' : ''}`}
2121
>Run Time</a
2222
>
23+
<a
24+
href="/methodology"
25+
class={`nav-link${pathname === '/methodology' ? ' nav-link--active' : ''}`}
26+
>Methodology</a
27+
>
2328
<a
2429
href="/glossary"
2530
class={`nav-link${pathname === '/glossary' ? ' nav-link--active' : ''}`}
@@ -191,6 +196,16 @@ const pathname = Astro.url.pathname
191196
class={`mobile-nav-link${pathname === '/run-time' ? ' mobile-nav-link--active' : ''}`}
192197
>Run Time</a
193198
>
199+
<a
200+
href="/methodology"
201+
class={`mobile-nav-link${pathname === '/methodology' ? ' mobile-nav-link--active' : ''}`}
202+
>Methodology</a
203+
>
204+
<a
205+
href="/glossary"
206+
class={`mobile-nav-link${pathname === '/glossary' ? ' mobile-nav-link--active' : ''}`}
207+
>Glossary</a
208+
>
194209
<a href="https://e18e.dev" class="mobile-nav-link">e18e.dev</a>
195210
</div>
196211
</header>

packages/docs/src/components/SSRLoadStatsMethodologyNotes.astro

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/docs/src/components/SSRRequestThroughputStatsMethodologyNotes.astro

Lines changed: 0 additions & 52 deletions
This file was deleted.

packages/docs/src/components/ServerSideRenderedStatsMethodologyNotes.astro

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/docs/src/pages/dev-time.astro

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,37 @@ import CoreJsTable from '../components/CoreJsTable.astro'
55
import DependencyCharts from '../components/DependencyCharts.astro'
66
import DependencyStatsTable from '../components/DependencyStatsTable.astro'
77
import NodeModulesSizeCharts from '../components/NodeModulesSizeCharts.astro'
8-
import MethodologyTag from '../components/MethodologyTag.astro'
8+
import DetailsLink from '../components/DetailsLink.astro'
99
import PageHeader from '../components/PageHeader.astro'
1010
import Layout from '../layouts/Layout.astro'
1111
---
1212

1313
<Layout>
1414
<PageHeader showToggle>Dev Time Stats</PageHeader>
1515
<h2 id="dependency-counts">Dependency Counts</h2>
16+
<DetailsLink
17+
href="/methodology#dependency-counts"
18+
label="Dependency Counts"
19+
/>
1620
<DependencyStatsTable />
1721
<DependencyCharts />
1822
<h2 id="node-modules-size">Node Modules Size</h2>
23+
<DetailsLink
24+
href="/methodology#node-modules-size"
25+
label="Node Modules Size"
26+
/>
1927
<NodeModulesSizeCharts />
2028
<h2 id="build-and-install-times">Build and Install Times</h2>
29+
<DetailsLink
30+
href="/methodology#build-and-install-times"
31+
label="Build and Install Times"
32+
/>
2133
<BuildInstallStatsTable />
2234
<BuildSizeCharts />
2335
<h2 id="core-js">Core-JS Polyfills</h2>
24-
<MethodologyTag>
25-
Detects vendored <a
26-
href="https://github.com/zloirock/core-js/blob/master/packages/core-js-compat/README.md"
27-
target="_blank"
28-
rel="noopener noreferrer">core-js</a
29-
> in build output and counts polyfill modules that are already natively supported
30-
by the <a
31-
href="https://browsersl.ist/#q=last+2+Chrome+major+versions%2C+last+2+Firefox+major+versions%2C+last+2+Safari+major+versions%2C+last+2+Edge+major+versions"
32-
target="_blank"
33-
rel="noopener noreferrer"
34-
>last 2 major versions of Chrome, Firefox, Safari, and Edge</a
35-
>. Size is approximate — it reflects the JS chunk containing core-js, which
36-
may include other bundled code.
37-
</MethodologyTag>
36+
<DetailsLink
37+
href="/methodology#core-js-polyfills"
38+
label="Core-JS Polyfills"
39+
/>
3840
<CoreJsTable />
3941
</Layout>

0 commit comments

Comments
 (0)