Skip to content

Commit

Permalink
docs: update header (#16403)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Oct 13, 2022
1 parent 4b70b91 commit 24950b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/src/_includes/layouts/base.html
Expand Up @@ -24,7 +24,7 @@
<title>{{ page_title }}</title>
<meta name="description" content="{{ page_desc }}">
<link rel="canonical" href="{{ page_url }}">

<!-- https://github.com/eslint/eslint/issues/15844 -->
<base href="{{ relative_page_url }}">

Expand Down Expand Up @@ -76,7 +76,7 @@


<style>

/* Overrides for funky punctuators */
@font-face {
font-family: "Mono Punctuators";
Expand All @@ -85,7 +85,7 @@
unicode-range: U+40, U+7B, U+7D, U+28, U+29;
font-display: swap;
}

/* Space Grotesk for headings */
@font-face {
font-family: "Space Grotesk";
Expand Down Expand Up @@ -136,7 +136,7 @@
<script src="https://unpkg.com/anchor-js@4.3.1/anchor.min.js"></script>
</head>

<body class="{{ hook }} docs">
<body class="{{ hook }}">
<a href="#main" class="c-btn c-btn--primary" id="skip-link">Skip to main content</a>

{{ content | safe }}
Expand Down
6 changes: 3 additions & 3 deletions docs/src/_includes/layouts/doc.html
Expand Up @@ -5,7 +5,7 @@
{% include "partials/docs-header.html" %}
{% from 'components/rule-categories.macro.html' import ruleCategories %}

<div class="docs-wrapper">
<div class="docs-wrapper docs">
<div class="docs-nav">
<div class="desktop-only">
{% include 'components/version-switcher.html' %}
Expand Down Expand Up @@ -48,7 +48,7 @@ <h2 id="further-reading">Further Reading</h2>

{% set all_content = [all_content, further_reading_content] | join %}
{% endif %}

{% if rule_meta %}
{% set resources_content %}
<h2 id="resources">Resources</h2>
Expand Down Expand Up @@ -76,7 +76,7 @@ <h1>{{ title }}</h1>
{% endif %}

{% include 'components/docs-toc.html' %}

{{ all_content | safe }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/src/_includes/partials/docs-header.html
@@ -1,5 +1,5 @@
<header class="site-header">
<div class="docs-wrapper">
<div class="docs-wrapper docs">
<a href="https://eslint.org" aria-label="ESLint Homepage" class="logo-link">
{% include "components/logo.html" %}
</a>
Expand Down

0 comments on commit 24950b3

Please sign in to comment.