Skip to content

Commit 9878f12

Browse files
authored
Merge branch 'inventree:master' into feature/bare-metal-install-improvements
2 parents b685ed8 + 27c4c5b commit 9878f12

5 files changed

Lines changed: 26 additions & 35 deletions

File tree

docs/README.md

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,13 @@ $ cd src
3838
$ pip install --require-hashes -r docs/requirements.txt
3939
```
4040

41-
## Build Documentation
41+
## Schema generation
4242

43-
Before serving the documentation, you will need to build the API schema files from the source code, so they can be included in the documentation:
44-
45-
```
46-
invoke build-docs
47-
```
43+
Building the documentation requires extracting the API schema from the source code.
4844

4945
!!! tip
5046
This command is only required when building the documentation for the first time, or when changes have been made to the API schema.
5147

52-
## Serve Local files
53-
5448
```
5549
$ invoke build-docs
5650
```
@@ -71,41 +65,31 @@ Schema export completed: /home/inventree/src/docs/generated/schema.yml
7165
Documentation build complete, but mkdocs not requested
7266
```
7367

74-
If that worked, you can now generate the HTML format documentation pages:
75-
76-
```
77-
$ mkdocs build -f docs/mkdocs.yml
78-
```
79-
80-
## Viewing the generated output
68+
## Viewing the documentation
8169

82-
To view the documentation locally, run the following command to start the MkDocs webpage server:
70+
Generate the HTML files from the markdown source files, and start the MkDocs webpage server:
8371

8472
```
85-
$ mkdocs serve -f docs/mkdocs.yml -a localhost:8080
73+
$ mkdocs serve -f docs/mkdocs.yml
8674
```
8775

88-
Alternatively, you can use the `invoke` command:
89-
90-
```
91-
invoke dev.docs-server
92-
```
76+
You can then point your web browser at http://localhost:8080/
9377

94-
To see all the available options:
78+
Alternatively, you can use the `invoke` command:
9579

9680
```
97-
invoke dev.docs-server --help
81+
$ invoke dev.docs-server
9882
```
9983

100-
You can then point your web browser at http://localhost:8080/
84+
If you need to, use the `-a` option after `mkdocs` or `invoke` to set the address and port. Run `invoke dev.docs-server --help` for details.
10185

10286
## Editing the Documentation Files
10387

104-
Once the server is running, it will monitor the documentation files for any changes, and regenerate the HTML pages.
88+
Once the server is running, it will monitor the documentation files for changes, and regenerate the HTML pages as required. Refresh your web browser to see the changes.
10589

10690
### Admonitions
10791

108-
"Admonition" blocks can be added as follow:
92+
"Admonition" blocks can be added to the documentation source as follows:
10993
```
11094
!!! info "This is the admonition block title"
11195
This is the admonition block content
11.8 KB
Loading
3.91 KB
Loading

docs/docs/plugins/install.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,16 @@ Admin users can install plugins directly from the web interface, via the "Plugin
6565

6666
{{ image("plugin/plugin_install_web.png", "Install plugin via web interface") }}
6767

68+
Enter the package name into the form as shown below. You can add a path and a version. Leave
69+
the version field empty for the latest version. In case the package is on pypi the path can
70+
be omitted. Pip will find it automatically.
71+
72+
{{ image("plugin/plugin_install_git.png", "Install plugin from git") }}
73+
6874
!!! success "Plugin File"
69-
A plugin installed via the web interface is added to the [plugins.txt](#plugin-installation-file-pip) plugin file.
75+
A plugin installed via the web interface is added to the [plugins.txt](#plugin-installation-file-pip) plugin file as shown below.
76+
77+
{{ image("plugin/plugin_install_txt.png", "Plugin.txt file") }}
7078

7179
#### Local Directory
7280

src/backend/InvenTree/config_template.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ debug_shell: False
4646
# Set the admin URL, or use the environment variable INVENTREE_ADMIN_URL
4747
#admin_url: 'admin'
4848

49+
# Add new user on first startup by either adding values here or from a file
50+
#admin_user: admin
51+
#admin_email: info@example.com
52+
#admin_password: inventree
53+
#admin_password_file: '/etc/inventree/admin_password.txt'
54+
4955
# Configure the system logging level (or use environment variable INVENTREE_LOG_LEVEL)
5056
# Options: DEBUG / INFO / WARNING / ERROR / CRITICAL
5157
log_level: WARNING
@@ -69,13 +75,6 @@ language: en-us
6975
# System time-zone (default is UTC). Reference: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
7076
timezone: UTC
7177

72-
73-
# Add new user on first startup by either adding values here or from a file
74-
#admin_user: admin
75-
#admin_email: info@example.com
76-
#admin_password: inventree
77-
#admin_password_file: '/etc/inventree/admin_password.txt'
78-
7978
# Email backend configuration
8079
# See https://docs.inventree.org/en/stable/settings/email for more information on email configuration
8180
# You can either use (1) SMTP, (2) console or (3) anymail backends

0 commit comments

Comments
 (0)