Skip to content

Commit

Permalink
Tauweb : Version 0.17.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Larpoux committed Feb 19, 2025
1 parent b8c7313 commit 78653c8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 64 deletions.
87 changes: 28 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,29 @@

For general information about developing packages, see the Dart guide for
[creating packages](https://dart.dev/guides/libraries/create-packages)
and the Flutter guide for
[developing packages and plugins](https://flutter.dev/to/develop-packages).
-->

# Tauweb

`Tauweb` is an [Etau](https://pub.dev/packages/etau) implementation for Flutter Web.

[Etau](https://pub.dev/packages/etau) is the interface and this is what see the App.
So, there are not many things to say about `Tauweb` because this is just an implementation.
The only verb used by the App is `tau()`, which gives the implementation.

You can see all the [Etau project documentation](https://tau.canardoux.xyz/etau-README.html) here.

Example
```dart
import 'package:etau/etau.dart';
import 'package:tau_web/tau_web.dart';
@override
void initState()
{
super.initState();
tau().init().then
((e){
audioCtx = tau().newAudioContext();
});
}
...
// Then all the code depends only on the interface (`etau`)
dest = audioCtx.destination;
source = audioCtx.createBufferSource();
source!.buffer = audioBuffer;
pannerNode = audioCtx.createStereoPanner();
pannerNode!.pan.value = pannerValue;
source!.connect(pannerNode!).connect(dest!);
```

if your App needs to support at the same time Fliutter Web And Flutter on mobiles:
```dart
import 'package:etau/etau.dart';
import 'package:etau/dummy.dart'
if (dart.library.js_interop) 'package:tau_web/tau_web.dart'
if (dart.library.io) 'package:tau_war/tau_war.dart';
@override
void initState()
{
super.initState();
tau().init().then
((e){
audioCtx = tau().newAudioContext();
});
}
```
If [Jekyll] is installed on your computer, you can also build and preview the created site *locally*. This lets you test changes before committing them, and avoids waiting for GitHub Pages.[^1] And you will be able to deploy your local build to a different platform than GitHub Pages.

More specifically, the created site:

- uses a gem-based approach, i.e. uses a `Gemfile` and loads the `just-the-docs` gem
- uses the [GitHub Pages / Actions workflow] to build and publish the site on GitHub Pages

Other than that, you're free to customize sites that you create with this template, however you like. You can easily change the versions of `just-the-docs` and Jekyll it uses, as well as adding further plugins.

[Browse our documentation][Just the Docs] to learn more about how to use this theme.

To get started with creating a site, simply:

1. click "[use this template]" to create a GitHub repository
2. go to Settings > Pages > Build and deployment > Source, and select GitHub Actions

If you want to maintain your docs in the `docs` directory of an existing project repo, see [Hosting your docs from an existing project repo](https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md#hosting-your-docs-from-an-existing-project-repo) in the template README.

----

[^1]: [It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll#creating-your-site).

[Just the Docs]: https://just-the-docs.github.io/just-the-docs/
[GitHub Pages]: https://docs.github.com/en/pages
[README]: https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md
[Jekyll]: https://jekyllrb.com
[GitHub Pages / Actions workflow]: https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/
[use this template]: https://github.com/just-the-docs/just-the-docs-template/generate
12 changes: 7 additions & 5 deletions bin/pub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ VERSION=$1
VERSION_CODE=${VERSION#./}
VERSION_CODE=${VERSION_CODE#+/}

echo '********************** pub tau_web **********************'
echo '********************** pub tauweb **********************'

bin/setver.sh $VERSION
bin/reldev.sh REL

cp -v ../tau_doc/pages/td/README.md .
#cp -v ../tau_doc/pages/td/README.md .
#gsed -i '1,6d' README.md
#gsed -i "/^\"\%}$/d" README.md
#gsed -i "/^{\% include/d" README.md
cp -v ../tauweb-doc/index.md README.md
gsed -i '1,6d' README.md
gsed -i "/^\"\%}$/d" README.md
gsed -i "/^{\% include/d" README.md

flutter analyze lib
if [ $? -ne 0 ]; then
Expand Down Expand Up @@ -75,4 +77,4 @@ fi



echo 'E.O.J for pub tau_web'
echo 'E.O.J for pub tauweb'

0 comments on commit 78653c8

Please sign in to comment.