You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,19 +17,21 @@ Targeted at hosters of version control platforms (such as [Wikifactory](https://
17
17
**Please see the [Install](#install) and [Usage](#usage) sections to get up and running with this tool**. For more details on its background and design considerations, please see the [Background](#background), ~~[Design notes](#design-notes), and [Future work](#future-work) sections. There is also a detailed [step-by-step walkthrough](docs/usage-example.md).~~
18
18
## Table of Contents
19
19
20
-
-[Table of Contents](#table-of-contents)
21
-
-[Background](#background)
22
-
-[Install](#install)
23
-
-[Running from source](#running-from-source)
24
-
-[Deploy as container](#deploy-as-container)
25
-
-[Usage](#usage)
26
-
-[Making requests to the REST API](#making-requests-to-the-rest-api)
27
-
-[API response format](#api-response-format)
28
-
-[Design notes](#design-notes)
29
-
-[Maintainers](#maintainers)
30
-
-[Contributing](#contributing)
31
-
-[Acknowledgements](#acknowledgements)
32
-
-[License](#license)
20
+
-[OSD status dashboard _(wp2.2_dev)_](#osd-status-dashboard-wp22_dev)
21
+
-[Table of Contents](#table-of-contents)
22
+
-[Background](#background)
23
+
-[Install](#install)
24
+
-[Running from source](#running-from-source)
25
+
-[Deploy as container](#deploy-as-container)
26
+
-[Usage](#usage)
27
+
-[Making requests to the REST API](#making-requests-to-the-rest-api)
* For `files_info` above, filetypes are identified by file extensions. The categories and mapping are located in [`oshminer/filetypes.py`](./oshminer/filetypes.py).
260
262
* The `license` information and formatting is largely based on that from the GitHub-managed [choosealicense.com repository](https://github.com/github/choosealicense.com), with the exception of some open source hardware licenses which were manually added.
261
263
264
+
### Custom Wikifactory URLs
265
+
266
+
By default, this tool will:
267
+
268
+
1. Identify whether a provided repository URL in the JSON request body as a Wikifactory project if it is under the domain `wikifactory.com`
269
+
2. Use the public Wikifactory GraphQL API endpoint at `https://wikifactory.com/api/graphql`
270
+
271
+
Both can be customised with the following environmental variables:
272
+
273
+
1.`WIF_BASE_URL` - (default: `wikifactory.com`) The base domain used for pattern-matching and identifying Wikifactory project URLs in the JSON request body in the form of `example.com`. If this is customised, then the requested Wikifactory project URLs passed to this tool should also use that domain instead of `wikifactory.com`. Otherwise, an "Repository URL domain not supported" error will be returned.
274
+
2.`WIF_API_URL` - (default: `https://wikifactory.com/api/graphql`) The full URL of the GraphQL API endpoint to make queries regarding Wikifactory projects in the form of `https://example.com[:port]/foo/bar`.
0 commit comments