You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: powershell-files-to-pages/readme.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
This script will scan through a local `files/` directory for `*.html` files then create pages for each within BookStack, where the name of the files is used for the name of the page and the contents of the file is used for the BookStack page content.
4
4
5
-
**This is a very simplistic single-script-file example of sending data via PowerShell** and was written with little prior PowerShell knowledge.
5
+
**Note:**This is a very simplistic single-script-file example of sending data via PowerShell and was written with little prior PowerShell knowledge.
6
6
7
7
## Requirements
8
8
9
9
You will need PowerShell available.
10
10
You will also need BookStack API credentials (TOKEN_ID & TOKEN_SECRET) at the ready.
11
11
12
-
**This script was written using PowerShell (Core) 7.2.10 on Linux".
12
+
*This script was written using PowerShell (Core) 7.2.10 on Linux".*
13
13
14
14
A `docker-compose.yml` file exists just as a convenient way to run PowerShell, particularly for Linux users.
15
15
@@ -33,7 +33,7 @@ Now it's time to run the script like so:
33
33
./files-to-pages.ps1 <target_book_id>
34
34
```
35
35
36
-
## Examples
36
+
## Example
37
37
38
38
```powershell
39
39
# Upload HTML files in the relative `files` directory as BookStack pages
0 commit comments