Skip to content

eon-dev1/scripture-forge-help

 
 

Repository files navigation

Scripture Forge help site

The Scripture Forge help site, served at help.scriptureforge.org

This site is built with Docusaurus. Documentation files are stored in Notion, and the manual is on an S3 bucket. The build process pulls the files from Notion (and optionally S3) and builds the site, but this process currently has a number of problems. Files need to be uploaded to Crowdin separately, and downloaded once translations are complete.

  • To download files from Notion and S3, run pull_docs.sh. Several environment variables must be set for this to work. See the script for details. If you have the AWS CLI installed and authenticated, you can pass --pull-from-s3 to update the manual from S3.

  • To preview changes, run npm start. Docusaurus will start a local development server, but localizations will not work (a limitation of Docusaurus). To preview localizations, run a full build.

  • To run a build, run build.sh. This will create a build directory with the static site. You can then preview the site with npm run serve. However, this won't properly serve the manual, since it's outside of Docusaurus. A better preview can be had by running python3 -m http.server in the build directory.

  • To deploy, run deploy.sh. Environment variables must be set for this to work. See the script for details. The deploy will create a preview on Netlify but will not go live without manual intervention.

Running on Windows Subsystem Linux

  • If you are a Windows user, please use the WSL/WSL2 terminal to perform the above tasks. You will want the following installed the following from the WSL/WSL2 terminal (additional applications may be needed):

    • dos2unix (used to update the line endings of the .sh files to run on WSL/WSL2) sudo apt-get install dos2unix
    • deno
  • To set the environment variables, you will want to open an administrative command prompt and setx VARIABLE each variable and then run setx WSLENV VARIABLE/u seperating each variable with a colon, to share them with WSL/WSL2 when running the update.mts.

About

Scripture Forge help site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 41.4%
  • JavaScript 31.4%
  • CSS 22.1%
  • EJS 4.9%
  • TypeScript 0.1%
  • MDX 0.1%