anytype-publish-renderer
make fmt formats the code
make lints does linter checks
this also wired to commit hooks
to test with local publish:
-
set the env var to e.g. renderer/test_snapshots/test-me
export ANYTYPE_LOCAL_PUBLISH_DIR=/home/zarkone/anytype/anytype-publish-renderer/test_snapshots/test-me
Run the client with this env and publish a page. Make sure test-me was created with index.json.gz inside.
-
in renderer, adjust Makefile SNAPSHOT_PATH accordingly:
SNAPSHOT_PATH:=./test_snapshots/test-me
-
make render
it will create index.html in renderer root.
(make sure your ~/go/bin is in $PATH)
-
launch a static web server in renderer root:
cd /home/zarkone/anytype/anytype-publish-renderer/
python -m http.server 8011
- Open http://localhost:8011 in browser
to enable css debug:
export ANYTYPE_PUBLISH_CSS_DEBUG=y
Contribution
Thank you for your desire to develop Anytype together!
❤️ This project and everyone involved in it is governed by the Code of Conduct.
🧑💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.
🫢 For security findings, please email security@anytype.io and refer to our security guide for more information.
🤝 Follow us on Github and join the Contributors Community.
Made by Any — a Swiss association 🇨🇭
Licensed under LICENSE NAME.