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

Incorporate @begin/masthead #180

Merged
merged 4 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/api/docs/$$.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import redirects from '../../lib/docs-redirects.mjs'
const arcdown = new Arcdown({
pluginOverrides: {
markdownItToc: {
containerClass: 'toc mbe2 mis-2',
containerClass: 'toc mbe2 mis-2 leading2',
listType: 'ul',
},
},
Expand Down
3 changes: 1 addition & 2 deletions app/docs/md/routing/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ The journey of an HTTP request through Enhance isn't complicated, but it's helpf

</doc-callout>

<doc-enhance-diagram class="block mbe2">
</doc-enhance-diagram>
<img src='/_public/img/docs/routing-lifecycle.svg' class='block mbe2 si-100' />

## Routing

Expand Down
1 change: 1 addition & 0 deletions app/elements/begin-masthead.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Masthead as default } from '@begin/masthead'
15 changes: 10 additions & 5 deletions app/elements/doc/content.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export default function DocContent({ html }) {
return html`
<style>
:host {
padding: 1rem;
}
:host > * {
max-width: 52rem;
margin: auto;
Expand All @@ -18,7 +15,15 @@ export default function DocContent({ html }) {
:host > ::slotted([slot]) > h3,
:host > ::slotted([slot]) > h4 {
margin-bottom: 0.75rem;
font-weight: 500;
}
:host > ::slotted([slot]) > h1 {
font-weight: 700;
}
:host > ::slotted([slot]) > h2,
:host > ::slotted([slot]) > h3,
:host > ::slotted([slot]) > h4 {
margin-bottom: 0.75rem;
font-weight: 600;
}
h1 {
font-size: 1.953rem;
Expand All @@ -34,7 +39,7 @@ export default function DocContent({ html }) {
}

strong {
font-weight: 500;
font-weight: 600;
color: var(--black-white);
}
small {
Expand Down
198 changes: 0 additions & 198 deletions app/elements/doc/enhance-diagram.mjs

This file was deleted.

Loading
Loading