Skip to content

Commit 1f84228

Browse files
6.0 docs refresh (#436)
1 parent 22a57e8 commit 1f84228

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1454
-776
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ RUN <<eot
2727
echo 'dipdup ALL = NOPASSWD: /usr/bin/inject_pyproject.sh' >> /etc/sudoers
2828
chmod +x /usr/bin/inject_pyproject.sh
2929
chmod +x /usr/bin/inject_pyproject
30-
apt uninstall -y make git
3130
rm -r /root/.cache
3231
eot
3332

docs/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ #include ../CONTRIBUTING.md }}

docs/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ docs:
2424
tail -n '+34' _build/html/cli-reference.html | head -n '-63' > cli-reference.md
2525
tail -n '+34' _build/html/config-reference.html | head -n '-63' > config/reference.md
2626
tail -n '+34' _build/html/context-reference.html | head -n '-63' > advanced/context/reference.md
27-
poetry run python ../scripts/print_help.py > troubleshooting/common-issues.md
2827
mdbook build --dest-dir=dist/docs
2928

3029
homepage:

docs/SUMMARY.md

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,55 @@
11
# Table of contents
22

3-
[Overview](README.md)
3+
[Introduction](README.md)
44

55
# User Guide
66

77
* [Quickstart](quickstart.md)
88
* [Getting started](getting-started/README.md)
99
* [Installation](getting-started/installation.md)
1010
* [Core concepts](getting-started/core-concepts.md)
11-
* [Preparing inventory](getting-started/preparing-inventory.md)
11+
* [Creating config](getting-started/creating-config.md)
1212
* [Project structure](getting-started/project-structure.md)
13-
* [Templates and variables](getting-started/templates-and-variables.md)
1413
* [Defining models](getting-started/defining-models.md)
1514
* [Implementing handlers](getting-started/implementing-handlers.md)
15+
* [Templates and variables](getting-started/templates-and-variables.md)
1616
* [Advanced usage](advanced/README.md)
1717
* [Datasources](advanced/datasources.md)
18-
* [Hooks](advanced/hooks/README.md)
19-
* [Default hooks](advanced/hooks/default.md)
20-
* [Job scheduler](advanced/hooks/jobs.md)
18+
* [Hooks](advanced/hooks.md)
19+
* [Event hooks](advanced/event-hooks.md)
20+
* [Job scheduler](advanced/jobs.md)
2121
* [Reindexing](advanced/reindexing.md)
2222
* [Feature flags](advanced/feature-flags.md)
23-
* [Executing SQL scripts](advanced/sql.md)
23+
* [SQL scripts](advanced/sql.md)
2424
* [Improving performance](advanced/performance.md)
2525
* [Callback context (ctx)](advanced/context/README.md)
26-
* [Full reference](advanced/context/reference.md)
2726
* [Internal models](advanced/internal-models.md)
28-
* [Spawning indexes at runtime](advanced/index-factories.md)
29-
* [Scheduler configuration](advanced/scheduler.md)
27+
* [Index factories](advanced/index-factories.md)
3028
* [Metadata interface](advanced/metadata-interface.md)
3129
* [GraphQL API](graphql/README.md)
3230
* [Hasura integration](graphql/hasura.md)
3331
* [REST endpoints](graphql/rest.md)
3432
* [GenQL](graphql/genql.md)
35-
* [Troubleshooting](troubleshooting/README.md)
36-
* [Common issues](troubleshooting/common-issues.md)
37-
* [Reporting bugs](troubleshooting/reporting-bugs.md)
3833
* [Deployment and operations](deployment/README.md)
3934
* [Database engines](deployment/database-engines.md)
40-
* [Building Docker images](deployment/docker.md)
41-
* [Deploying with docker-compose](deployment/docker-compose.md)
42-
* [Deploying with Docker Swarm](deployment/swarm.md)
35+
* [Running in Docker](deployment/docker.md)
4336
* [Sentry integration](deployment/sentry.md)
4437
* [Prometheus integration](deployment/prometheus.md)
4538
* [Logging](deployment/logging.md)
46-
* [Monitoring](deployment/monitoring.md)
4739
* [Backup and restore](deployment/backups.md)
48-
* [Cookbook](cookbook/README.md)
49-
* [Processing offchain data](cookbook/offchain-data.md)
50-
* [Reusing typename for different contracts](cookbook/reusing-typenames.md)
51-
* [Synchronizing multiple handlers/hooks](cookbook/sync-callbacks.md)
52-
* [Multiprocessing](cookbook/multiprocessing.md)
53-
* [Examples](examples/README.md)
54-
* [Demo projects](examples/demo-projects.md)
55-
* [Built with DipDup](examples/built-with-dipdup.md)
56-
* [Services (plugins)](services/README.md)
57-
* [mempool](services/mempool.md)
58-
* [metadata](services/metadata.md)
40+
* [F.A.Q.](faq.md)
41+
* [Troubleshooting](troubleshooting.md)
42+
* [Contribution guide](CONTRIBUTING.md)
43+
44+
# Examples
45+
46+
* [Demo projects](examples/demo-projects.md)
47+
* [Built with DipDup](examples/built-with-dipdup.md)
48+
49+
# Standalone Services
50+
51+
* [mempool](services/mempool.md)
52+
* [metadata](services/metadata.md)
5953

6054
# Reference Guide
6155

@@ -64,6 +58,7 @@
6458
* [Full reference](config/reference.md)
6559
* [advanced](config/advanced.md)
6660
* [contracts](config/contracts.md)
61+
* [custom](config/custom.md)
6762
* [database](config/database.md)
6863
* [datasources](config/datasources.md)
6964
* [hasura](config/hasura.md)
@@ -73,7 +68,9 @@
7368
* [head](config/indexes/head.md)
7469
* [operation](config/indexes/operation.md)
7570
* [template](config/indexes/template.md)
71+
* [token_transfer](config/indexes/token_transfer.md)
7672
* [jobs](config/jobs.md)
73+
* [logging](config/logging.md)
7774
* [package](config/package.md)
7875
* [prometheus](config/prometheus.md)
7976
* [sentry](config/sentry.md)

docs/advanced/context/README.md

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,7 @@
11
# Callback context (`ctx`)
22

3-
> 🚧 **UNDER CONSTRUCTION**
4-
>
5-
> This page or paragraph is yet to be written. Come back later.
6-
73
An instance of the `HandlerContext` class is passed to every handler providing a set of helper methods and read-only properties.
84

9-
## `.reindex() -> None`
10-
11-
Drops the entire database and starts the indexing process from scratch. `on_index_rollback` hook calls this helper by default.
12-
13-
## `.add_contract(name, address, typename) -> Coroutine`
14-
15-
Add a new contract to the inventory.
16-
17-
## `.add_index(name, template, values) -> Coroutine`
18-
19-
Add a new index to the current configuration.
20-
21-
## `.fire_hook(name, wait=True, **kwargs) -> None`
22-
23-
Trigger hook execution. Unset `wait` to execute hook outside of the current database transaction.
24-
25-
## `.execute_sql(name) -> None`
26-
27-
The `execute_sql` argument could be either name of SQL script in `sql` directory or an absolute/relative path. If the path is a directory, all `.sql` scripts within it will be executed in alphabetical order.
28-
29-
## `.update_contract_metadata(network, address, token_id, metadata) -> None`
30-
31-
Inserts or updates the corresponding row in the service `dipdup_contract_metadata` table used for exposing the [5.11 Metadata interface](../metadata-interface.md)
32-
33-
## `.update_token_metadata(network, address, token_id, metadata) -> None`
34-
35-
Inserts or updates the corresponding row in the service `dipdup_token_metadata` table used for exposing the [5.11 Metadata interface](../metadata-interface.md)
36-
37-
## `.logger`
38-
39-
Use this instance for logging.
40-
41-
## `.template_values`
5+
## Reference
426

43-
You can access values used for initializing a template index.
7+
{{ #include reference.md}}

0 commit comments

Comments
 (0)