Page MenuHomePhabricator

[Chronik] Add Docusaurus documentation
AbandonedPublic

Authored by bytesofman on Mar 8 2024, 20:09.

Details

Reviewers
Fabien
tobias_ruck
Group Reviewers
Restricted Project
Summary

This provides a full reference on how to use Chronik, from downloading, to building, to setup and how to use chronik-client.

This code is based on the auto-generated template tutorial for docusaurus.

It uses mdx, which is a mix of Markdown and JSX, which gives us the ability to include Live Code so the user can play around with the code examples right there.

Test Plan
  1. in modules/chronik-client: npm install
  2. in doc/chronik: npm install && npm start
  3. Should open browser automatically, go through all pages and check if the information is correct

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-add-docusaurus-docs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27763
Build 55087: Build Diffchronik-client-integration-tests · chronik-client-tests
Build 55086: arc lint + arc unit

Event Timeline

don't lint doc/chronik, it gives false positives

The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.

remove copyright again, it break title detection

doc/chronik/package.json
3 ↗(On Diff #46051)

It should have some version

fix social thumbnail tagline

Use meaningful component names in live demos

always refer to master branch in typedoc

The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.
bytesofman requested changes to this revision.Mar 8 2024, 23:32
bytesofman added a subscriber: bytesofman.

ws msgs not working due to buffer issue but that's on me to fix it in chronik-client. otherwise looks good. before landing,

  • favicon
  • decide on the url

then we can promote it without having to change all the links later

doc/chronik/docs/1-chronik-js/00-install.md
10

do we need --save?

i use npm i chronik-client

doc/chronik/static/img/favicon.ico
1

can use same as e.cash for now, or even a very small version of the above chronik logo

doc/chronik/static/img/logo.svg
2

newline at end of file

This revision now requires changes to proceed.Mar 8 2024, 23:32
doc/chronik/docs/1-chronik-js/00-install.md
10

I always use --save, yarn even has it as default

doc/chronik/static/img/logo.svg
2

sir this is a dinosaur

2

but yeah we can have that in the meantime

bytesofman abandoned this revision.
bytesofman edited reviewers, added: tobias_ruck; removed: bytesofman.