Skip to content

docs: docusaurus #800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
173 changes: 0 additions & 173 deletions build/wikibase/README.md

This file was deleted.

20 changes: 20 additions & 0 deletions docusaurus/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions docusaurus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Website

This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
sidebar_label: Wikibase Suite Elasticsearch Image
---

# Wikibase Suite Elasticsearch Image

[Elasticsearch](https://en.wikipedia.org/wiki/Elasticsearch) is a search engine based on the Lucene library.

This image contains the Elasticsearch server with the
[org.wikimedia.search/extra](https://central.sonatype.com/artifact/org.wikimedia.search/extra)
and
[org.wikimedia.search.highlighter/experimental-highlighter-elasticsearch-plugin](https://central.sonatype.com/artifact/org.wikimedia.search.highlighter/experimental-highlighter-elasticsearch-plugin)
plugins for [Wikibase](https://wikiba.se).
This image contains the Elasticsearch server with the [org.wikimedia.search/extra](https://central.sonatype.com/artifact/org.wikimedia.search/extra) and [org.wikimedia.search.highlighter/experimental-highlighter-elasticsearch-plugin](https://central.sonatype.com/artifact/org.wikimedia.search.highlighter/experimental-highlighter-elasticsearch-plugin) plugins for [Wikibase](https://wikiba.se).

> 💡 This image is part of Wikibase Suite (WBS). [WBS Deploy](https://github.com/wmde/wikibase-release-pipeline/deploy/README.md) provides everything you need to self-host a Wikibase instance out of the box.

Expand All @@ -18,8 +18,7 @@ In order to run Wikibase Elasticsearch, you need:

### MediaWiki/Wikibase instance

We suggest using the [WBS Wikibase Image](https://hub.docker.com/r/wikibase/wikibase) because this is the image we
run all our tests against. Follow the setup instructions over there to get it up and running.
We suggest using the [WBS Wikibase Image](https://hub.docker.com/r/wikibase/wikibase) because this is the image we run all our tests against. Follow the setup instructions over there to get it up and running.

Be sure to add the `ELASTICSEARCH_HOST` environment variable to your Wikibase container.

Expand Down Expand Up @@ -110,13 +109,13 @@ This Elasticsearch image is using [semantic versioning](https://semver.org/spec/

We provide several tags that relate to the versioning semantics.

| Tag | Example | Description |
| ----------------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| _MAJOR_ | 3 | Tags the latest image with this major version. Gets overwritten whenever a new version is released with this major version. This will include new builds triggered by base image changes, patch version updates and minor version updates. |
| _MAJOR_._MINOR_ | 3.1 | Tags the latest image with this major and minor version. Gets overwritten whenever a new version is released with this major and minor version. This will include new builds triggered by base image changes and patch version updates. |
| _MAJOR_._MINOR_._PATCH_ | 3.1.7 | Tags the latest image with this major, minor and patch version. Gets overwritten whenever a new version is released with this major, minor and patch version. This only happens for new builds triggered by base image changes. |
| _MAJOR_._MINOR_._PATCH_\_es*ES-VERSION* | 3.1.7_es7.20.2 | Same as above, but also mentioning the current Elasticsearch version. |
| _MAJOR_._MINOR_._PATCH_\_build*BUILD-TIMESTAMP* | 3.1.7_build20240530103941 | Tag that never gets overwritten. Every image will have this tag with a unique build timestamp. Can be used to reference images explicitly for reproducibility. |
| Tag | Example | Description |
| --- | --- | --- |
| _MAJOR_ | 3 | Tags the latest image with this major version. Gets overwritten whenever a new version is released with this major version. This will include new builds triggered by base image changes, patch version updates and minor version updates. |
| _MAJOR_._MINOR_ | 3.1 | Tags the latest image with this major and minor version. Gets overwritten whenever a new version is released with this major and minor version. This will include new builds triggered by base image changes and patch version updates. |
| _MAJOR_._MINOR_._PATCH_ | 3.1.7 | Tags the latest image with this major, minor and patch version. Gets overwritten whenever a new version is released with this major, minor and patch version. This only happens for new builds triggered by base image changes. |
| _MAJOR_._MINOR_._PATCH_\_es*ES-VERSION* | 3.1.7_es7.20.2 | Same as above, but also mentioning the current Elasticsearch version. |
| _MAJOR_._MINOR_._PATCH_\_build*BUILD-TIMESTAMP* | 3.1.7_build20240530103941 | Tag that never gets overwritten. Every image will have this tag with a unique build timestamp. Can be used to reference images explicitly for reproducibility. |

## Source

Expand All @@ -126,6 +125,4 @@ This image is built from this [Dockerfile](https://github.com/wmde/wikibase-rele

This image is maintained by the Wikibase Suite Team at [Wikimedia Germany (WMDE)](https://wikimedia.de).

If you have questions not listed above or need help, use this [bug report
form](https://phabricator.wikimedia.org/maniphest/task/edit/form/129/) to start
a conversation with the engineering team.
If you have questions not listed above or need help, use this [bug report form](https://phabricator.wikimedia.org/maniphest/task/edit/form/129/) to start a conversation with the engineering team.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
sidebar_label: Dockerhub
---

# Wikibase Suite Elasticsearch Image

Wikibase Suite (WBS) eases self-hosting [Wikibase](https://wikiba.se) in production, allowing you to maintain a knowledge graph similar to [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ This image contains Quickstatements and the required Magnustools library. It is

## Requirements

- MediaWiki/Wikibase instance with
[OAuth](https://www.mediawiki.org/wiki/Extension:OAuth) enabled
- MediaWiki/Wikibase instance with [OAuth](https://www.mediawiki.org/wiki/Extension:OAuth) enabled
- QuickStatements set up as an OAuth consumer on MediaWiki
- Reverse proxy (if Wikibase and QuickStatements are running on the same host)
- DNS domain name resolution for QuickStatements and Wikibase
Expand Down Expand Up @@ -47,19 +46,19 @@ In order to authorize QuickStatements against Wikibase via OAuth, both services

Variables in **bold** are required.

| Variable | Default | Description |
| -------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------ |
| **`WIKIBASE_PUBLIC_URL`** | undefined | Host and port of Wikibase as seen by the user's browser (required) |
| **`QUICKSTATEMENTS_PUBLIC_URL`** | undefined | Host and port of QuickStatements as seen by the user's browser (required) |
| **`OAUTH_CONSUMER_KEY`** | undefined | OAuth consumer key (from MediaWiki), required on initial setup, stored in `/quickstatements/data`. |
| **`OAUTH_CONSUMER_SECRET`** | undefined | OAuth consumer secret (from MediaWiki) , required on initial setup, stored in `/quickstatements/data`. |
| `WB_ITEM_NAMESPACE` | 120 | Wikibase Item namespace |
| `WB_PROPERTY_NAMESPACE` | 122 | Wikibase Property namespace |
| `WB_ITEM_PREFIX` | "Item:" | Wikibase Item prefix |
| `WB_PROPERTY_PREFIX` | "Property:" | Wikibase Property prefix |
| `PHP_TIMEZONE` | "UTC" | setting of php.ini date.timezone |
| `LANGUAGE_CODE` | "en" | Site language |
| `SITENAME` | "wikibase" | Site name |
| Variable | Default | Description |
| --- | --- | --- |
| **`WIKIBASE_PUBLIC_URL`** | undefined | Host and port of Wikibase as seen by the user's browser (required) |
| **`QUICKSTATEMENTS_PUBLIC_URL`** | undefined | Host and port of QuickStatements as seen by the user's browser (required) |
| **`OAUTH_CONSUMER_KEY`** | undefined | OAuth consumer key (from MediaWiki), required on initial setup, stored in `/quickstatements/data`. |
| **`OAUTH_CONSUMER_SECRET`** | undefined | OAuth consumer secret (from MediaWiki) , required on initial setup, stored in `/quickstatements/data`. |
| `WB_ITEM_NAMESPACE` | 120 | Wikibase Item namespace |
| `WB_PROPERTY_NAMESPACE` | 122 | Wikibase Property namespace |
| `WB_ITEM_PREFIX` | "Item:" | Wikibase Item prefix |
| `WB_PROPERTY_PREFIX` | "Property:" | Wikibase Property prefix |
| `PHP_TIMEZONE` | "UTC" | setting of php.ini date.timezone |
| `LANGUAGE_CODE` | "en" | Site language |
| `SITENAME` | "wikibase" | Site name |

## Example

Expand Down Expand Up @@ -190,12 +189,12 @@ This image uses [semantic versioning](https://semver.org/spec/v2.0.0.html).

We provide several tags that relate to the versioning semantics.

| Tag | Example | Description |
| ----------------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| _MAJOR_ | 3 | Tags the latest image with this major version. Gets overwritten whenever a new version is released with this major version. This will include new builds triggered by base image changes, patch version updates and minor version updates. |
| _MAJOR_._MINOR_ | 3.1 | Tags the latest image with this major and minor version. Gets overwritten whenever a new version is released with this major and minor version. This will include new builds triggered by base image changes and patch version updates. |
| _MAJOR_._MINOR_._PATCH_ | 3.1.7 | Tags the latest image with this major, minor and patch version. Gets overwritten whenever a new version is released with this major, minor and patch version. This only happens for new builds triggered by base image changes. |
| _MAJOR_._MINOR_._PATCH_\_build*BUILD-TIMESTAMP* | 3.1.7_build20240530103941 | Tag that never gets overwritten. Every image will have this tag with a unique build timestamp. Can be used to reference images explicitly for reproducibility. |
| Tag | Example | Description |
| --- | --- | --- |
| _MAJOR_ | 3 | Tags the latest image with this major version. Gets overwritten whenever a new version is released with this major version. This will include new builds triggered by base image changes, patch version updates and minor version updates. |
| _MAJOR_._MINOR_ | 3.1 | Tags the latest image with this major and minor version. Gets overwritten whenever a new version is released with this major and minor version. This will include new builds triggered by base image changes and patch version updates. |
| _MAJOR_._MINOR_._PATCH_ | 3.1.7 | Tags the latest image with this major, minor and patch version. Gets overwritten whenever a new version is released with this major, minor and patch version. This only happens for new builds triggered by base image changes. |
| _MAJOR_._MINOR_._PATCH_\_build*BUILD-TIMESTAMP* | 3.1.7_build20240530103941 | Tag that never gets overwritten. Every image will have this tag with a unique build timestamp. Can be used to reference images explicitly for reproducibility. |

## Known Issues

Expand All @@ -219,11 +218,11 @@ Hooking into the internal filesystem can extend the functionality of this image.
| `/var/www/html/quickstatements/public_html` | The Apache root folder |
| `/var/www/html/magnustools` | Base magnustools directory |

| File | Description |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/templates/config.json` | Template for QuickStatements' config.json (substituted to `/var/www/html/quickstatements/public_html/config.json` in `entrypoint.sh`) |
| `/templates/oauth.ini` | Template for QuickStatements' oauth.ini (substituted to `/quickstatements/data/oauth.ini` in `entrypoint.sh`) |
| `/templates/php.ini` | PHP config (default provided sets date.timezone to prevent php complaining substituted to `/usr/local/etc/php/conf.d/php.ini` in `entrypoint.sh` ) |
| File | Description |
| --- | --- |
| `/templates/config.json` | Template for QuickStatements' config.json (substituted to `/var/www/html/quickstatements/public_html/config.json` in `entrypoint.sh`) |
| `/templates/oauth.ini` | Template for QuickStatements' oauth.ini (substituted to `/quickstatements/data/oauth.ini` in `entrypoint.sh`) |
| `/templates/php.ini` | PHP config (default provided sets date.timezone to prevent php complaining substituted to `/usr/local/etc/php/conf.d/php.ini` in `entrypoint.sh` ) |

## Source

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
sidebar_label: Dockerhub
---

# Wikibase Suite QuickStatements Image

Wikibase Suite (WBS) eases self-hosting [Wikibase](https://wikiba.se) in production, allowing you to maintain a knowledge graph similar to [Wikidata](https://www.wikidata.org/wiki/Wikidata:Main_Page).
Expand Down
Loading
Loading