Tool to scrape BaseX website for library function definitions
- XQuery 100%
| docs | ||
| lib | ||
| scripts | ||
| .env.sample | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
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
Functionspage - 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 | username | (none) |
| BASEXDOCS_PASSWORD | Y | user password | (none) |
| BASEXDOCS_VER | N | basex version e.g 11,12,13 | main |
| BASEXDOCS_SITE | N | https://docs.basex.org/ |
To assist in setting these up: 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
Using Pi -coding agent
#set basex ver, project var, pi inherits current environment
. basex-ver 13;. export-env; pi