Skip to content

Commit f9d05f2

Browse files
authored
Adding Sphinx documentation for Read the docs (#6)
* Adding Sphinx documentation for Read the docs * Updating requirements.txt * Fixing some more line-length warnings * Removing intake (breaking build on pip install) Fixing some errors in iocextract * Updating JupyterAndSecurity doc. Adding function to execute simple kql string query. * Warning fixes for flake8 (mostly line length) * A couple more pylint warning fixes/suppressions * Adding Linux Auditd collection document. * Removing license parameter from setuptools.setup This seems to cause the license text to be concatenated to the project description and makes a mess of the PyPi description
1 parent 6cce39a commit f9d05f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+40155
-446
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ venv.bak/
103103
# mypy
104104
.mypy_cache/
105105
/msticpy.code-workspace
106+
/docs/source/_build/**

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ will unpack the contents. The results of each decode/unpack are rechecked for fu
4949
base64 content and will recurse down up to 20 levels (default can be overridden).
5050
Output is to a decoded string (for single string input) or a DataFrame (for dataframe input).
5151

52-
[Base64Unpack Notebook](./doc/Base64Unpack.ipynb)
52+
[Base64Unpack Notebook](./docs/notebooks/Base64Unpack.ipynb)
5353

5454
### iocextract
5555

@@ -69,7 +69,7 @@ You can modify or add to the regular expressions used at runtime.
6969

7070
Output is a dictionary of matches (for single string input) or a DataFrame (for dataframe input).
7171

72-
[Base64Unpack Notebook](./doc/IoCExtract.ipynb)
72+
[Base64Unpack Notebook](./docs/notebooks/IoCExtract.ipynb)
7373

7474
### vtlookup
7575

@@ -84,7 +84,7 @@ Support IoC Types:
8484
- DNS Domain
8585
- IPv4 Address
8686

87-
[VTLookup Notebook](./doc/VirusTotalLookup.ipynb)
87+
[VTLookup Notebook](./docs/notebooks/VirusTotalLookup.ipynb)
8888

8989
### geoip
9090

@@ -99,7 +99,7 @@ a paid tier will normally get you more accuracy, more detail and
9999
a higher throughput rate. Maxmind geolite uses a downloadable database,
100100
while IPStack is an online lookup (API key required).
101101

102-
[GeoIP Lookup Notebook](./doc/GeoIPLookups.ipynb)
102+
[GeoIP Lookup Notebook](./docs/notebooks/GeoIPLookups.ipynb)
103103

104104
### eventcluster
105105

@@ -110,8 +110,9 @@ items.
110110

111111
The module contains functions to generate clusterable features from
112112
string data. For example, an administration command that
113-
does some maintenance on thousands of servers with a commandline such as:<br>
114-
```
113+
does some maintenance on thousands of servers with a commandline such as:
114+
115+
```bash
115116
install-update -hostname {host.fqdn} -tmp:/tmp/{GUID}/rollback
116117
```
117118

@@ -144,7 +145,7 @@ quicker and easier.
144145
- nbdisplay - functions that implement common display of things like alerts, events in a slightly more consumable way than print()
145146
- entityschema - implements entity classes (e.g. Host, Account, IPAddress) used in Log Analytics alerts and in many of these modules. Each entity encaspulates one or more properties related to the entity.
146147

147-
[Notebooks Tools](./doc/NotebookWidgets.ipynb)
148+
[Notebooks Tools](./docs/notebooks/NotebookWidgets.ipynb)
148149

149150
## Data sub-package - `data`
150151

docs/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
REM @ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
33+
34+
:end
35+
popd

0 commit comments

Comments
 (0)