bookstackapp / api-scripts Goto Github PK
View Code? Open in Web Editor NEWExamples of BookStack API scripts
License: MIT License
Examples of BookStack API scripts
License: MIT License
https://github.com/BookStackApp/api-scripts/blob/main/php-export-all-books/export-books.php
As far as I understand, the issue was fixed in a release 3 years ago, so it shouldn't affect anyone to remove the workaround from the code.
Are the community repos tested and or endosed in any way before they are listed here in your github bookstack account
Hello,
I am trying bookstack on localhost in order to try if I can use this wonderful tool with our existing documentation.
In the files-to-pages.ps1 I have:
$baseUrl = "http://localhost:6875" # $env:BS_URL
$tokenId = "my_token_ID" #$env:BS_TOKEN_ID
$tokenSecret = "My_token_secret_ID" #$env:BS_TOKEN_SECRET
And in the docker-compose I have:
---
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=http://localhost:6875
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=password
- DB_DATABASE=bookstackapp
volumes:
- ./bookstack_app_data:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=password
- TZ=Europe/Madrid
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=password
volumes:
- ./bookstack_db_data:/config
restart: unless-stopped
powershell:
image: mcr.microsoft.com/powershell:latest
volumes:
- .:/app
working_dir: /app
command: "pwsh ./files-to-pages.ps1 1" # ["pwsh"]
I have the bookstack working but when I execute docker-compose up powershell Im getting this error
Attaching to bookstack_powershell_1
powershell_1 | Invoke-RestMethod: /app/files-to-pages.ps1:43
powershell_1 | Line |
powershell_1 | 43 | Invoke-RestMethod -Uri $url -Method Post -Headers $headers -Body …
powershell_1 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
powershell_1 | | Cannot assign requested address
powershell_1 | Invoke-RestMethod: /app/files-to-pages.ps1:43
powershell_1 | Line |
powershell_1 | 43 | Invoke-RestMethod -Uri $url -Method Post -Headers $headers -Body …
powershell_1 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
powershell_1 | | Cannot assign requested address
bookstack_powershell_1 exited with code 0```
I think powershell cannot communicate with locahost
Sorry for my bad English
I'm trying to run the Powershell Import HTML-script but I don't have a number that is a book ID.
I cannot seem to find where the ID is present in the GUI of the application. I tried the name of the book as it's written in the URL but that didn't work.
Our company has installed Bookstack in its server.
Now we are trying to integrate this in one of our erp just like Appsmith.
But when we tried to embed the book stack url on erp it is not opening and showing following error Refused to frame 'https://xxxxxxxx.yyy/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
We found out that this particular domain is not allowing access through erp system, while it is working fine for other cases (Appsmith). We even checked the CSP setting, so that the book stack site can be plugged inside erp. But there are no issues there as well.
We also need to understand the login authentication in Bookstack from the erp screen.
As the employees have already logged in once in the erp system so we do not want to ask them to login again to Bookstack.
We have successfully implemented the login with Google option. However, we are currently facing a challenge in enabling login for our organization's employees. We need assistance in finding a solution that allows users with the same domain name, such as "[email protected]," to log in. Can you please help us with this?
Currently i am able to login with google with my own id only
Thank you for the very useful script.
Could you please check, why php-generate-sitemap does not generate links for chapters? Like this:
https://demo.bookstackapp.com/books/dummy-content-book/chapter/chapter-a
(If you need a ready test case - I can provide you the private API access).
Thank you for integrating this into our screen. We have successfully implemented the login with Google option. However, we are currently facing a challenge in enabling login for our organization's employees. We need assistance in finding a solution that allows users with the same domain name, such as "[email protected]," to log in. Can you please help us with this?
Currently i am able to login with google with my own id only
Hi, just stumbled upon these scripts. Not using Bookstack yet as I am evaluating various options at the moment but I was wondering whether it would be possible to include export into DOCX as well? I noticed couple of days ago you added import from DOCX, could we have export too? Thanks!
Didn't want to add these to the core git repo so just creating this dummy issue to attach to
bookstack-export-linux.zip
bookstack-export-macos.zip
bookstack-export-windows.zip
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.