Skip to content

Commit

Permalink
docs(build): merge GitHub suggestion correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bhajneet committed May 18, 2019
1 parent 51ac093 commit 9671368
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A digital representation of Sikh Bani and other Panthic texts with a public logb
- [Database](#database)
- [JSON](#json)
- [Import](#import)
- [Contributing](#contributing)
- [Folder structure](#folder-structure)
- [Releases](#releases)
- [Benchmarks](#benchmarks)
Expand Down Expand Up @@ -99,18 +100,7 @@ It is best practice to build the database, make changes to `database.sqlite`, an

It's possible to import other sqlite files. Run `npm run import -- --help` to see all options.

The importer will generate placeholder Sources, Translation Sources, and fill in `-1` for Shabad sections and Writer IDs. These must be corrected in `build/database.sqlite`.

```bash
npm run import -- nandlal.sqlite nandlal -o ID -s ShabadID -2 ShabadID -S SourceID -t English -t Punjabi -p PageNo -l LineNo -g Gurmukhi

It will generate placeholder Sources, Translation Sources, and fill in `-1` for Shabad sections and Writer IDs.

Once the script has completed, these must all be corrected in `build/database.sqlite`. After this, run `npm run build-json`, followed by `npm run build-sqlite`, to generate all the corrected field changes and verify the import was succesful.

Run `npm run import -- --help` to see all options.

E.g.
The importer will generate placeholder Sources, Translation Sources, and fill in `-1` for Shabad sections and Writer IDs. These must be corrected in `build/database.sqlite`. (Refer to [Database](#database) and [JSON](#json) above).

```bash
npm run import -- nandlal.sqlite nandlal -o ID -s ShabadID -2 ShabadID -S SourceID -t English -t Punjabi -p PageNo -l LineNo -g Gurmukhi
Expand Down

0 comments on commit 9671368

Please sign in to comment.