Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mentat Test 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Mentat Test 3
Commits
0d1d5aa5
Commit
0d1d5aa5
authored
4 years ago
by
Jan Zerdik
Browse files
Options
Downloads
Patches
Plain Diff
Slight changes in documentation according to suggestions.
(Redmine issue: #6127)
parent
729f223b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/sphinx/_doclib/reporting.rst
+7
-5
7 additions, 5 deletions
doc/sphinx/_doclib/reporting.rst
with
7 additions
and
5 deletions
doc/sphinx/_doclib/reporting.rst
+
7
−
5
View file @
0d1d5aa5
...
@@ -246,7 +246,7 @@ to following steps:
...
@@ -246,7 +246,7 @@ to following steps:
#. Tag event with new class using the :ref:`mentat-inspector.py <section-bin-mentat-inspector>`
#. Tag event with new class using the :ref:`mentat-inspector.py <section-bin-mentat-inspector>`
module. This means, that in default installation you have to edit configuration
module. This means, that in default installation you have to edit configuration
file ``/etc/mentat/mentat-inspector.py.conf`` and append new rule into the list
file ``/etc/mentat/mentat-inspector.py.conf`` and append new rule into the list
of existing ``inspection_rules``.
of existing ``inspection_rules``.
Restart inspector.
#. Create subdirectory in ``/etc/mentat/event_classes/`` with same name as rule
#. Create subdirectory in ``/etc/mentat/event_classes/`` with same name as rule
and in it create files ``info.json``, ``email.j2``, ``hawat.j2``.
and in it create files ``info.json``, ``email.j2``, ``hawat.j2``.
#. To ``info.json`` paste json object with ``label`` key that contains short description
#. To ``info.json`` paste json object with ``label`` key that contains short description
...
@@ -268,10 +268,12 @@ to following steps:
...
@@ -268,10 +268,12 @@ to following steps:
Following steps are required if you are using internationalization and are
Following steps are required if you are using internationalization and are
also required if you are adding new language:
also required if you are adding new language:
#. If you are adding classes in git repository, change working directory to its root,
#. If you are adding classes in git repository, change working directory to its root.
or if you are adding in installed instance, change directory to folder with
If you are adding in installed instance, activate venv by running
your hawat installation. If you changed default installation paths, you also
``. /var/mentat/venv/bin/activate`` and change directory to folder with your hawat
need to change them in Makefile.
installation. You can locate it by running ``python3 -c "import hawat; import os.path;
print(os.path.dirname(hawat.__file__))"``. If you changed default installation paths,
you also need to change them in Makefile.
#. Run ``make cpybabel-init INIT_LOCALE=lc`` where lc is code of your locales.
#. Run ``make cpybabel-init INIT_LOCALE=lc`` where lc is code of your locales.
#. Add translations to ``<git_root>/conf/event_classes/<class_name>/translations/<lc>/LC_MESSAGES/messages.po``
#. Add translations to ``<git_root>/conf/event_classes/<class_name>/translations/<lc>/LC_MESSAGES/messages.po``
or ``/etc/mentat/event_classes/<class_name>/translations/<lc>/LC_MESSAGES/messages.po``.
or ``/etc/mentat/event_classes/<class_name>/translations/<lc>/LC_MESSAGES/messages.po``.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment