GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BlockNote/docs at main · TypeCellOS/BlockNote

Expand file tree

/

docs

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

docs

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
app
app
 
 
assets/fonts
assets/fonts
 
 
components
components
 
 
content
content
 
 
emails
emails
 
 
lib
lib
 
 
public
public
 
 
.env.local.example
.env.local.example
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
cli.json
cli.json
 
 
instrumentation-client.ts
instrumentation-client.ts
 
 
instrumentation.ts
instrumentation.ts
 
 
mdx-components.tsx
mdx-components.tsx
 
 
next.config.ts
next.config.ts
 
 
package.json
package.json
 
 
partykitserver.ts.bak
partykitserver.ts.bak
 
 
postcss.config.mjs
postcss.config.mjs
 
 
proxy.ts
proxy.ts
 
 
redirects.ts
redirects.ts
 
 
sentry.edge.config.ts
sentry.edge.config.ts
 
 
sentry.server.config.ts
sentry.server.config.ts
 
 
source.config.ts
source.config.ts
 
 
sqlite.db
sqlite.db
 
 
tsconfig.json
tsconfig.json
 
 
validate-links.mjs
validate-links.mjs
 
 
vercel.json
vercel.json
 
 
vite.config.ts
vite.config.ts
 
 

README.md

Outline

Website Development

This is the code for the BlockNote documentation website. If you're looking to work on BlockNote itself, check the packages folder.

To get started with development of the website, you can follow these steps:

  1. Initialize the DB

If you haven't already, you can initialize the database with the following command:

cd docs && pnpm run init-db

This will initialize an SQLite database at ./docs/sqlite.db.

  1. Setup environment variables

Copy the .env.example file to .env.local and set the environment variables.

cp .env.example .env.local

If you want to test logging in, or payments see more information below in the environment variables section.

  1. Start the development server from within the ./docs directory.
pnpm run dev

This will start the development server on port 3000.

Environment Variables

Logging in

To test logging in, you can set the following environment variables:

AUTH_SECRET=test
# Github OAuth optionally
AUTH_GITHUB_ID=test
AUTH_GITHUB_SECRET=test

Note: the GITHUB_ID and GITHUB_SECRET are optional, but if you want to test logging in with Github you'll need to set them. For local development, you'll need to set the callback URL to http://localhost:3000/api/auth/callback/github

Payments

To test payments, you can set the following environment variables:

POLAR_ACCESS_TOKEN=test
POLAR_WEBHOOK_SECRET=test

For testing payments, you'll need access to the polar sandbox which needs to be configured to point a webhook to your local server. This can be configured at: https://sandbox.polar.sh/dashboard/blocknote/settings/webhooks

You'll need something like ngrok to expose your local server to the internet.

ngrok http http://localhost:3000

You'll need the webhook to point to ngrok like so:

https://0000-00-00-000-00.ngrok-free.app/api/auth/polar/webhooks

With this webhook pointing to your local server, you should be able to test payments.

Email sending

Note, this is not required, if email sending is not configured, the app will log the email it would send to the console. Often this is more convenient for development.

To test email sending, you can set the following environment variables:

SMTP_HOST=
SMTP_USER=
SMTP_PASS=
SMTP_PORT=
SMTP_SECURE=false

When configured, you'll be able to send emails to the email address you've configured.

To setup with protonmail, you'll need to go to https://account.proton.me/u/0/mail/imap-smtp and create a new SMTP submission token.

You'll need to set the following environment variables:

SMTP_HOST=smtp.protonmail.com
[email protected]
SMTP_PASS=my-smtp-token
SMTP_PORT=587
SMTP_SECURE=false

Contributing

To submit your changes, open a pull request to the BlockNote GitHub repo. Pull requests will automatically be deployed to a preview environment.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.