docs: improve admonition styles (#1880)

This commit is contained in:
Marvin Hagemeister
2023-10-06 22:56:11 +02:00
committed by GitHub
parent 21fcf6169b
commit 01e5f71058
7 changed files with 110 additions and 7 deletions
+2 -1
View File
@@ -75,4 +75,5 @@ rendered.
The rendered page will only include the `<meta>`-tag with `"Other title"`.
> ℹ️ The `<title>`-tag is automatically deduplicated, even without a `key` prop.
> [info]: The `<title>`-tag is automatically deduplicated, even without a `key`
> prop.
+3 -3
View File
@@ -30,9 +30,9 @@ This will create a `_fresh` folder in the project directory. That folder
contains the optimized assets and a `snapshot.json` file which includes some
metadata for Fresh.
> ℹ️ The `_fresh` folder should not be committed to the repository. Add an entry
> in the `.gitignore` file to ensure that it is not committed. Create that file
> at the root of your git repository if not present.
> [info]: The `_fresh` folder should not be committed to the repository. Add an
> entry in the `.gitignore` file to ensure that it is not committed. Create that
> file at the root of your git repository if not present.
>
> ```gitignore .gitignore
> # Ignore fresh build directory
+3 -2
View File
@@ -97,8 +97,9 @@ a folder and use a different `_layout` file for each group.
   └── contact.tsx
```
> ℹ️ Be careful about routes in different groups which match to the same URL.
> Such scenarios will lead to ambiguity as to which route file should be picked.
> [warn]: Be careful about routes in different groups which match to the same
> URL. Such scenarios will lead to ambiguity as to which route file should be
> picked.
>
> ```txt Project structure
> └── routes
@@ -29,7 +29,7 @@ this, one needs to create a new `routes/about.tsx` file. In this file, we can
declare a component that should be rendered every time a user visits the page.
This is done with JSX.
> ℹ️ To learn more about JSX, you can read [this article][jsx] in the React
> [info]: To learn more about JSX, you can read [this article][jsx] in the React
> documentation. Beware that Fresh does not use React, but rather
> [Preact][preact], a lighter weight virtual dom library that works similar to
> React.