libjansson-dev \
libpython2.7 \
make \
- mscgen \
parallel \
python3-yaml \
rustc \
# Use an empty install section to avoid RTD from picking up a non-python
# requirements.txt file.
install: []
-
-build:
- apt_packages:
- - mscgen
threshold.config \
$(SURICATA_UPDATE_DIR) \
lua \
- acsite.m4
+ acsite.m4 \
+ scripts/generate-images.sh
SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \
$(SURICATA_UPDATE_DIR)
AC_DEFINE([CLS],[64],[L1 cache line size])
fi
-# mscgen for devguide images
- AC_PATH_PROG([HAVE_MSCGEN], mscgen, "no")
- if test "$HAVE_MSCGEN" = "no"; then
- enable_mscgen=no
- echo "WARNING! mscgen package not installed."
- echo " Devguide images won't be generated!"
- echo " Get mscgen package:"
- echo " https://www.mcternan.me.uk/mscgen/"
- echo " or install it from your distribution"
- fi
- AM_CONDITIONAL([HAVE_MSCGEN], [test "x$enable_mscgen" != "xno" ])
-
# sphinx for documentation
AC_PATH_PROG(HAVE_SPHINXBUILD, sphinx-build, "no")
if test "$HAVE_SPHINXBUILD" = "no"; then
rm -rf $(top_builddir)/doc/userguide/_build
rm -f $(top_builddir)/doc/userguide/suricata*.1
rm -f $(top_builddir)/doc/userguide/userguide.pdf
- rm -f $(top_builddir)/doc/userguide/devguide/extending/app-layer/diagrams/*.png
endif # HAVE_SPHINXBUILD
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except:
html_theme = 'default'
+ def setup(app):
+ if hasattr(app, 'add_css_file'):
+ app.add_css_file('css/suricata.css')
+ else:
+ app.add_stylesheet('css/suricata.css')
else:
html_context = {
'css_files': [
],
}
-def setup(app):
- # Generate images.
- subprocess.check_call("./devguide/tools/generate-images.sh")
- if not on_rtd:
- if hasattr(app, 'add_css_file'):
- app.add_css_file('css/suricata.css')
- else:
- app.add_stylesheet('css/suricata.css')
-
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
+++ /dev/null
-extending/app-layer/diagrams/*.png
set -e
cd "$parent_path"
-cd ../extending/app-layer/diagrams
+cd ../doc/userguide/devguide/extending/app-layer/diagrams
for FILE in *.msc ; do
# call mscgen and convert each file in images dir