Skip to content

Commit

Permalink
Added meta tags to documentation website
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen1999 committed Jan 19, 2025
1 parent c951031 commit a859f8b
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/api_usage.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
myst:
html_meta:
"description lang=en": "suricata-check is a command line utility to provide feedback on Suricata rules to by detecting issues through static analysis."
"keywords": "Suricata, rules, ruleset, suricata-check, API, Python"
---
# API Usage

Sometimes it may be more convenient to avoid the CLI and instead use the module directly, which exposes more functionality and may be easier te extend if your project also uses Python. Below, we will characterize several use-cases you may encounter and how to address them using the functionality exposed by `suricata-check`.
Expand Down
6 changes: 6 additions & 0 deletions docs/checker.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
myst:
html_meta:
"description lang=en": "suricata-check is a command line utility to provide feedback on Suricata rules to by detecting issues through static analysis."
"keywords": "Suricata, suricata-check, Extend, Checker"
---
# Writing checkers

## CheckerInterface
Expand Down
6 changes: 6 additions & 0 deletions docs/ci_cd.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
myst:
html_meta:
"description lang=en": "suricata-check is a command line utility to provide feedback on Suricata rules to by detecting issues through static analysis."
"keywords": "Suricata, rules, ruleset, suricata-check, Continuous Integration, Continuous Deployment, Workflow, Action, GitHub, GitLab, CodeClimate"
---
# CI/CD Integration

If you maintain a large rulebase in through version-control managed platform, you may be interested in integrating `suricata-check` with your Continuous Integration and Continuous Deployment workflows.
Expand Down
6 changes: 6 additions & 0 deletions docs/cli_usage.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
myst:
html_meta:
"description lang=en": "suricata-check is a command line utility to provide feedback on Suricata rules to by detecting issues through static analysis."
"keywords": "Suricata, rules, ruleset, suricata-check, CLI, Command Line, rules, rule"
---
# CLI Usage

After having installed `suricata_check` as described in [Installation](./readme.md#installation) and having ensured it is included in the `PATH` variable (check your operating system specific instructions for this), you can invoke it using by running `suricata-check`.
Expand Down
10 changes: 8 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,15 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "sphinx_rtd_theme"
html_theme_options = {
'display_version': True,
'prev_next_buttons_location': 'both',
'style_external_links': True,
}
html_static_path = ["static"]
html_favicon = "https://docs.readthedocs.io/favicon.ico"

html_js_files = ["js/umami.js"]
html_js_files = ["js/script.js"]

# -- Options for MyST -------------------------------------------------
# https://myst-parser.readthedocs.io/en/latest/
Expand Down Expand Up @@ -93,4 +99,4 @@
"search.html",
"genindex.html"
]
html_extra_path = ['robots.txt']
html_extra_path = ['robots.txt']
6 changes: 6 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
---
myst:
html_meta:
"description lang=en": "suricata-check is a command line utility to provide feedback on Suricata rules to by detecting issues through static analysis."
"keywords": "Suricata, suricata-check, Python, Contributing"
---
```{include} ../CONTRIBUTING.md
```
6 changes: 6 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
---
myst:
html_meta:
"description lang=en": "suricata-check is a command line utility to provide feedback on Suricata rules to by detecting issues through static analysis."
"keywords": "Suricata, rules, ruleset, suricata-check"
---
```{include} ../README.md
```
File renamed without changes.
2 changes: 1 addition & 1 deletion suricata_check/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_version() -> str:
try:
import setuptools_git_versioning

v = str(setuptools_git_versioning.get_version())
v = str(setuptools_git_versioning.get_version(root=SURICATA_CHECK_DIR))
_logger.debug(
"Detected suricata-check version using setuptools_git_versioning: %s", v
)
Expand Down

0 comments on commit a859f8b

Please sign in to comment.