-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website):Add mdx to Astro and configure for it. (#1354)
* add mdx * update * update * add special theming * update * update * updates * update * update * css changes * format * fix package lock
- Loading branch information
1 parent
3e12387
commit dde2c94
Showing
8 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
import '../styles/mdcontainer.scss'; | ||
import BaseLayout from './BaseLayout.astro'; | ||
const { frontmatter } = Astro.props; | ||
--- | ||
|
||
<BaseLayout title={frontmatter.title}> | ||
<div class='mdContainer'> | ||
<slot /> | ||
</div> | ||
</BaseLayout> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
layout: ../../layouts/MdLayout.astro | ||
title: "Governance" | ||
--- | ||
|
||
|
||
# Governance | ||
|
||
|
||
Governance page goes here | ||
|
||
<b>Bold</b> | ||
|
||
_italic_ etc. | ||
|
||
``` | ||
code blocks | ||
are great | ||
``` | ||
|
||
and `commands` | ||
|
||
[Link](http://google.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,4 @@ table, tr, td { | |
|
||
border-radius: 1rem; | ||
display:flex | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
.mdContainer{ | ||
@apply max-w-3xl mx-auto; | ||
} | ||
|
||
.mdContainer h1{ | ||
@apply text-2xl font-semibold text-main break-all my-3; | ||
} | ||
|
||
.mdContainer h2{ | ||
@apply text-xl font-semibold text-main break-all my-3; | ||
} | ||
|
||
.mdContainer h3{ | ||
@apply text-lg font-semibold text-main break-all my-3; | ||
|
||
} | ||
|
||
.mdContainer p{ | ||
@apply my-2; | ||
} | ||
|
||
.mdContainer a{ | ||
@apply text-main underline hover:font-semibold; | ||
} |