Skip to content

Commit

Permalink
Enhance documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Sep 15, 2023
1 parent b9e77c3 commit 833057d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 21 deletions.
39 changes: 22 additions & 17 deletions docs/docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ The configurations in this page can be set from several sources in the following
3. a **.properties** file placed under CLASSPATH. This file can be put under `src/main/resources` source directory with
contents, for example, `OAUTH_ENABLED=true`

Note that environment config has higher priority than Java system properties. Java system properties have higher
priority than file based configuration.

Core Properties
---------------

:::note
:::info

The following configurations can be placed in the properties file called **application.properties**
The following configurations can be placed in the properties file called **src/main/resources/application.properties**

:::

Expand All @@ -26,16 +29,16 @@ import TabItem from '@theme/TabItem';

<Tabs>
<TabItem value="jpa-elide" label="JPA(Elide)" default>
- **MODEL_PACKAGE_NAME**: The fully qualified package name that contains a set of Elide JPA models
<b>MODEL_PACKAGE_NAME</b>: The fully qualified package name that contains a set of Elide JPA models
</TabItem>
</Tabs>

OAuth 2
-------
Security
--------

:::note
:::info

The following configurations can be placed in the properties file called **oauth.properties**
The following configurations can be placed in the properties file called **src/main/resources/oauth.properties**

:::

Expand All @@ -59,27 +62,29 @@ The following configurations can be placed in the properties file called **oauth
}
```

(Elide) JPA DataStore
---------------------
JPA DataStore
-------------

:::note
:::info

The following configurations can be placed in the properties file called **jpadatastore.properties**
The following configurations can be placed in the properties file called **src/main/resources/jpadatastore.properties**

:::

<Tabs>
<TabItem value="jpa-elide" label="JPA(Elide)" default>
- **DB_USER**: Persistence DB username (needs have both Read and Write permissions).
- **DB_PASSWORD**: The persistence DB user password.
- **DB_URL**: The persistence DB URL, such as "jdbc:mysql://localhost/elide?serverTimezone=UTC".
- **DB_DRIVER**: The SQL DB driver class name, such as "com.mysql.jdbc.Driver".
- **DB_DIALECT**: The SQL DB dialect name, such as "org.hibernate.dialect.MySQLDialect".
<ul>
<li> <b>DB_USER</b>: Persistence DB username (needs have both Read and Write permissions).</li>
<li> <b>DB_PASSWORD</b>: The persistence DB user password.</li>
<li> <b>DB_URL</b>: The persistence DB URL, such as "jdbc:mysql://localhost/elide?serverTimezone=UTC".</li>
<li> <b>DB_DRIVER</b>: The SQL DB driver class name, such as "com.mysql.jdbc.Driver".</li>
<li> <b>DB_DIALECT</b>: The SQL DB dialect name, such as "org.hibernate.dialect.MySQLDialect".</li>
</ul>
</TabItem>
</Tabs>

[Java system properties]: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
[JWKS]: https://datatracker.ietf.org/doc/html/rfc7517

[OAuthFilter]: https://paion-data.github.io/astraios/apidocs/com/paiondata/astraios/web/filters/OAuthFilter.html
[OAuthFilter]: https://qubitpi.github.io/jersey-ws-template/apidocs/com/qubitpi/ws/jersey/template/web/filters/OAuthFilter.html
[operating system's environment variables]: https://docs.oracle.com/javase/tutorial/essential/environment/env.html
2 changes: 1 addition & 1 deletion docs/docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Running Webservice in Standalone Jetty (Production)

### Download Jetty

For JDK **17**, which is Astraios' Java version, it's been tested that Jetty _11.0.15_ worked. Hence, we will use
For JDK **17**, which is the version JWT runs on, it's been tested that Jetty _11.0.15_ worked. Hence, we will use
["11.0.15" release](https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/11.0.15/jetty-home-11.0.15.tar.gz) as
an example:

Expand Down
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const config = {
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
label: 'Documentation',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
Expand All @@ -91,7 +91,7 @@ const config = {
title: 'Docs',
items: [
{
label: 'Tutorial',
label: 'Documentation',
to: '/docs/intro',
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const sidebars = {
'hello',
{
type: 'category',
label: 'Tutorial',
label: 'Documentation',
items: ['tutorial-basics/create-a-document'],
},
],
Expand Down

0 comments on commit 833057d

Please sign in to comment.