Skip to content

Commit

Permalink
Use variable for PHP min version in docs (librenms#12256)
Browse files Browse the repository at this point in the history
* Use variable for PHP min version in docs

* Bump mkdocs deps
  • Loading branch information
Jellyfrog authored Oct 24, 2020
1 parent 780e74b commit bd81f76
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion doc/Installation/Install-LibreNMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Connect to the server command line and follow the instructions below.
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 7.3**
**Please note the minimum supported PHP version is @= php.version_min =@**

## Install Required Packages

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-CentOS-6-Apache-Nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 5.6.4**
**Please note the minimum supported PHP version is @= php.version_min =@**

# On the DB Server

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-CentOS-7-Apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 7.2.5**
**Please note the minimum supported PHP version is @= php.version_min =@**


## Install Common Required Packages ##
Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-CentOS-7-Nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 7.2.5**
**Please note the minimum supported PHP version is @= php.version_min =@**

# Install Required Packages

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-Debian-10-Nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 7.2.5**
**Please note the minimum supported PHP version is @= php.version_min =@**

# Install Required Packages

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-Ubuntu-1604-Apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 5.6.4**
**Please note the minimum supported PHP version is @= php.version_min =@**

# Install Required Packages

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-Ubuntu-1604-Nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 5.6.4**
**Please note the minimum supported PHP version is @= php.version_min =@**

# Install Required Packages

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-Ubuntu-1804-Apache.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 7.2.5**
**Please note the minimum supported PHP version is @= config.extra.php_min_version =@**

# Install Required Packages

Expand Down
2 changes: 1 addition & 1 deletion doc/Installation/Installation-Ubuntu-1804-Nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ path: blob/master/doc/
> at `mysql>` prompts) or temporarily become a user with root
> privileges with `sudo -s` or `sudo -i`.
**Please note the minimum supported PHP version is 7.2.5**
**Please note the minimum supported PHP version is @= php.version_min =@**

# Install Required Packages

Expand Down
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ markdown_extensions:
options:
startinline: true
plugins:
- macros:
j2_variable_start_string: '@='
j2_variable_end_string: '=@'
- search
- exclude:
glob: General/Changelogs/*
Expand All @@ -35,6 +38,8 @@ extra_javascript:
extra:
article_nav_top: false
article_nav_bottom: true
php:
version_min: 7.2.5
site_author: LibreNMS
site_description: LibreNMS user and developer documentation
repo_url: https://github.com/librenms/librenms/
Expand Down
19 changes: 14 additions & 5 deletions scripts/deploy-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,29 @@ fi

pip3 install --upgrade pip
pip3 install --user --requirement <(cat <<EOF
click==7.1.2
future==0.18.2
Jinja2==2.11.2
livereload==2.6.1
joblib==0.17.0
livereload==2.6.3
lunr==0.5.8
Markdown==3.2.2
Markdown==3.3.2
MarkupSafe==1.1.1
mkdocs==1.1.2
mkdocs-exclude==1.0.2
mkdocs-material==5.2.2
mkdocs-macros-plugin==0.4.18
mkdocs-material==6.1.0
mkdocs-material-extensions==1.0.1
nltk==3.5
pymdown-extensions==7.1
Pygments==2.7.1
pymdown-extensions==8.0.1
python-dateutil==2.8.1
PyYAML==5.3.1
regex==2020.10.23
six==1.15.0
termcolor==1.1.0
tornado==6.0.4
MarkupSafe==1.1.1
tqdm==4.50.2
EOF
)

Expand Down

0 comments on commit bd81f76

Please sign in to comment.