Update README.md
This commit is contained in:
@@ -23,7 +23,7 @@ This script is a slight modification of [this script](https://github.com/BookSta
|
|||||||
|
|
||||||
Download the script
|
Download the script
|
||||||
```bash
|
```bash
|
||||||
curl https://raw.githubusercontent.com/BookStackApp/api-scripts/main/php-book-to-static-site/book-to-static.php > book-to-static.php
|
curl https://gitea.apointless.space/bsncubed/bookstack-static-site/raw/branch/main/book-to-static.php > book-to-static.php
|
||||||
```
|
```
|
||||||
|
|
||||||
Export Variables
|
Export Variables
|
||||||
@@ -31,8 +31,9 @@ Export Variables
|
|||||||
export BS_URL=https://bookstack.example.com # Set to be your BookStack base URL
|
export BS_URL=https://bookstack.example.com # Set to be your BookStack base URL
|
||||||
export BS_TOKEN_ID=abc123 # Set to be your API token_id
|
export BS_TOKEN_ID=abc123 # Set to be your API token_id
|
||||||
export BS_TOKEN_SECRET=123abc # Set to be your API token_secret
|
export BS_TOKEN_SECRET=123abc # Set to be your API token_secret
|
||||||
|
export BS_CSS_FILE # Set to be the name of your CSS markdown file
|
||||||
```
|
```
|
||||||
Or, alterntively, you can modify the verables in the script manualy
|
Or, alternatively, you can modify the variables in the script manualy
|
||||||
|
|
||||||
Run the script
|
Run the script
|
||||||
```bash
|
```bash
|
||||||
@@ -46,4 +47,4 @@ php book-to-static.php <book_url_slug> <output_dir>
|
|||||||
php book-to-static.php example-book ./out
|
php book-to-static.php example-book ./out
|
||||||
```
|
```
|
||||||
#### CSS
|
#### CSS
|
||||||
Move the desired css file in your output directory
|
Move the CSS file to the Output Directory
|
||||||
Reference in New Issue
Block a user