STATIC-HOSTING.md
As an alternative to runnning BenotPDF locally or in a Docker container, you can very easily host it as a set of static web pages. Here are a few examples:
One of simplest ways to host BentoPDF is to create a project at Netlify and create a static deployment. You can accomplish this by first downloading the pre-built distribution file from our GitHub releases. Each release includes a dist-{version}.zip file that contains all necessary files for self-hosting.
dist-{version}.zip fileWhen a new BentoPDF release becomes available, you will need to repeat steps 1-3, then go into "Deploys" and upload the new release.
Alternatively, you can configure a Netlify project to automatically deploy whenever your BentoPDF is updated.
https://[projectname]/netlify.app to view your deployment of BentoPDF.Whenever the BentoPDF source code is updated, you can sync the changes into your repo. This will kick off a new build and deploy within Netlify.
If you want to use BentoPDF's simple mode, go into Deploy Settings, then Environment Variables, and Add a variable. Add SIMPLE_MODE and set it to true. You will need to manually kick a new build to get this to take effect.
Vercel provides similar services to Netlify dynamic hosting.
Whenever the BentoPDF source code is updated, you can sync the changes into your repo. This will kick off a new build and deploy within BentoPDF.
If you want to use BentoPDF's simple mode, go into Project Settings, then Environment Variables, and Create a new variable. Add SIMPLE_MODE and set it to true. You will need to redeploy to get this to take effect.
You can also host your own instance of BentoPDF using GitHub pages. An advantage of this over the other options is you are able to do everything in GitHub without any third party service.
Settings->Pages, and change the 'Source' to 'GitHub Actions'Settings->Secrets and Variables > Actions, then select 'Variables', and add the repository variable BASE_URL. Set the value to /bentopdf. If you've renamed the repo to something other than bentopdf, put that here.Actions in the top menu, and select 'I understand' to enable ActionsWhen the build completes, you can find the website at https://[your-github-username]/bentopdf
If/when you merge changes from the source BentoPDF repository, the build and deploy action will automatically be kicked off and the new version will be automatically deployed to GitHub Pages.