Upgrade dependencies in docs

This commit is contained in:
Simon Binder 2021-07-08 12:28:52 +02:00
parent 43f85e5c34
commit 334908f57a
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
11 changed files with 15 additions and 48 deletions

View File

@ -8,7 +8,7 @@ We use a static site generator based on `build_runner` to build the documentatio
For a fast edit-refresh cycle, run
```
dart run webdev serve --auto refresh pages:9999 web:8080
dart pub global run webdev serve --auto refresh pages:9999 web:8080
```
You can ignore the `pages:9999` (or use any other port), it's just required

View File

@ -1,19 +1,6 @@
targets:
# Preprocess css first, so that we can read generated assets in the main target (for subresource integrity)
css:
auto_apply_builders: false
builders:
sass_builder:
enabled: true
sources:
- "web/main.scss"
- "web/main.css"
$default:
dependencies: [":css"]
builders:
sass_builder:
enabled: false
build_web_compilers|entrypoint:
release_options:
# Turn of null assertions for release builds, it looks like this
@ -29,4 +16,5 @@ targets:
- "web/**"
- "$package$"
- "pubspec.yaml"
- "theme.yaml"
- "website.yaml"

View File

@ -1,19 +1,6 @@
targets:
# Preprocess css first, so that we can read generated assets in the main target (for subresource integrity)
css:
auto_apply_builders: false
builders:
sass_builder:
enabled: true
sources:
- "web/main.scss"
- "web/main.css"
$default:
dependencies: [":css"]
builders:
sass_builder:
enabled: false
built_site:
release_options:
environment: "preview"
@ -32,4 +19,5 @@ targets:
- "web/**"
- "$package$"
- "pubspec.yaml"
- "theme.yaml"
- "website.yaml"

2
docs/lib/_style.scss Normal file
View File

@ -0,0 +1,2 @@
@import 'variables.scss';
@import '_highlight.scss';

View File

@ -76,7 +76,7 @@ class Users extends Table {
The generated `User` class will then have a `preferences` column of type
`Preferences`. Moor will automatically take care of storing and loading
the object in `select`, `update` and `insert` statements. This feature
also works with [compiled custom queries]({{ "/queries/custom" | absURL }}).
also works with [compiled custom queries]({{ "/queries/custom" | absUrl }}).
{% block "blocks/alert" title="Caution with equality" color="warning" %}
> If your converter returns an object that is not comparable by value, the generated dataclass will not

View File

@ -10,23 +10,18 @@ dependencies:
hosted:
url: https://simonbinder.eu
name: docsy
version: ^0.1.2
version: ^0.2.0
dev_dependencies:
build_runner: ^1.11.1
build_web_compilers: ^2.16.3
build_runner: ^2.0.5
build_web_compilers: ^3.0.0
built_site:
hosted:
url: https://simonbinder.eu
name: built_site
version: ^0.1.0
webdev: ^2.7.1
sass_builder: ^2.1.3
version: ^0.2.0
dependency_overrides:
args: ^2.0.0
yaml: ^3.0.0
crypto: ^3.0.0
# todo: Remove after https://github.com/dart-lang/mime/pull/43
mime:
git:

View File

@ -2,7 +2,7 @@
<main id="main">
<div>
<h1 id="title">Not found</h1>
<p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" | relURL }}">home page</a>.</p>
<p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" | relUrl }}">home page</a>.</p>
</div>
</main>
{% endcapture %}

View File

@ -1,2 +1,2 @@
<link rel="stylesheet" href="{{ "/main.css" | relURL }}">
<script defer src="{{ "/main.dart.js" | relURL }}"></script>
<link rel="stylesheet" href="{{ "/main.css" | relUrl }}">
<script defer src="{{ "/main.dart.js" | relUrl }}"></script>

2
docs/theme.yaml Normal file
View File

@ -0,0 +1,2 @@
contributes:
sass: 'lib/_style.scss'

View File

@ -1,5 +0,0 @@
import 'package:docsy/main.dart' as docsy;
void main() {
docsy.built_site_main();
}

View File

@ -1,3 +0,0 @@
@import "package:moor_documentation/_variables";
@import "package:docsy/style";
@import "package:moor_documentation/_highlight";