Commit eab6d986 authored by inertia's avatar inertia
Browse files

updated readme

parent b29d6e4b
......@@ -99,42 +99,42 @@ An example pointing at the Hivedev testnet:
$ TEST_NODE=https://testnet.Hivedev.com bundle exec rake scrape:api_defs
```
### Importing
### Generating Tutorials
To import all new tutorials from all known tutorial repositories, which is the typical use case:
To generate all new tutorials from all known tutorial paths, which is the typical use case:
```bash
bundle exec rake scrape:tutorials
bundle exec rake gen:tutorials
```
#### Targeted Import: [devportal-tutorials-js](https://github.com/Hive/devportal-tutorials-js/tree/master/tutorials)
#### Targeted Generate: [devportal-tutorials-js](https://gitlab.syncad.com/hive/devportal/-/tree/develop/tutorials/devportal-tutorials-js/tutorials)
This command will check for new tutorials in `devportal-tutorials-js` and import them into this project.
```bash
bundle exec rake scrape:tutorials:js
bundle exec rake gen:tutorials:js
```
To force update on a particular tutorial, use the following command:
```bash
bundle exec rake scrape:tutorials:js[1,true]
bundle exec rake gen:tutorials:js[1,true]
```
Where `1` represents the numerical prefix like in `01_blog_feed` and `true` instructs the task to overwrite what's there, even if it exists.
Other Targeted imports supported are `:py` and `:js` using the same syntax.
#### Targeted Import: [devportal-tutorials-py](https://github.com/Hive/devportal-tutorials-py/tree/master/tutorials)
#### Targeted Import: [devportal-tutorials-py](https://gitlab.syncad.com/hive/devportal/-/tree/develop/tutorials/devportal-tutorials-py/tutorials)
```bash
bundle exec rake scrape:tutorials:py
bundle exec rake gen:tutorials:py
```
#### Targeted Import: [devportal-tutorials-rb](https://github.com/Hive/devportal-tutorials-rb/tree/master/tutorials)
#### Targeted Import: [devportal-tutorials-rb](https://gitlab.syncad.com/hive/devportal/-/tree/develop/tutorials/devportal-tutorials-rb/tutorials)
```bash
bundle exec rake scrape:tutorials:rb
bundle exec rake gen:tutorials:rb
```
### Tests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment