Tool to scrape BaseX website for library function definitions
Find a file
2026-08-08 22:30:35 +01:00
lib [mod] index 2026-08-08 22:30:35 +01:00
scripts [add] index 2026-08-07 22:52:55 +01:00
.env.sample [mod] cleanup 2026-08-07 15:38:15 +01:00
.gitignore [mod] index 2026-08-08 22:30:35 +01:00
LICENSE Initial commit 2026-07-30 14:50:35 +01:00
README.md [mod] index 2026-08-08 22:30:35 +01:00

BaseX-functions

Experimental tools to assist creating machine readable assets from the BaseX documentation particularly the wiki at https://docs.basex.org/

Raw wiki pages are XML using a mixture of HTML and custom elements. The content is often markdown which may contain HTML.

Features

  • login and download raw wiki pages
  • create a module index by scraping the Functions page
  • create stub files from downloaded raw wiki pages

Requires

Required environment-variables in the table below are set.

Name Required Description Default
BASEXDOCS_USER Y (none)
BASEXDOCS_PASSWORD Y (none)
BASEXDOCS_VER N (empty)
BASEXDOCS_SITE N https://docs.basex.org/

To assist in setting up these copy .env.sample to .env and then customize the .env file.

Load and check unix

set -a; source .env; set +a
env | grep -E "BASEXDOCS"  # Filter to see your vars