cgranleese-r7 aeafa4a756 Land #19088, Add docs for running and writing Metasploit's unit tests hai 4 semanas
..
_includes 1b44973c80 Improve UX of module explorer hai 1 ano
_plugins 1b44973c80 Improve UX of module explorer hai 1 ano
assets 1b44973c80 Improve UX of module explorer hai 1 ano
metasploit-framework.wiki aeafa4a756 Land #19088, Add docs for running and writing Metasploit's unit tests hai 4 semanas
.gitignore c55fcb6ca6 Add additional kerberos documentation hai 1 ano
.ruby-gemset 3f922dfdb6 Add initial metasploit docs site, generated from the existing wiki %!s(int64=2) %!d(string=hai) anos
.ruby-version 1855306e14 Bump docs ruby version to 3.0.5 hai 1 ano
404.html 3f922dfdb6 Add initial metasploit docs site, generated from the existing wiki %!s(int64=2) %!d(string=hai) anos
CNAME c4c39e97dd Add cname to metasploit docs %!s(int64=2) %!d(string=hai) anos
Gemfile fd3fb5f3a4 Update docs site to support mermaid hai 1 ano
Gemfile.lock fd3fb5f3a4 Update docs site to support mermaid hai 1 ano
README.md 4c50456b6a Update docs to support links with anchors hai 1 ano
_config.yml 1726767fdf Update the workflow docs for ESC13 hai 2 meses
_config_development.yml 3f922dfdb6 Add initial metasploit docs site, generated from the existing wiki %!s(int64=2) %!d(string=hai) anos
_config_staging.yml e119713c6f Add additional documentation for mssql and ldap hai 1 ano
build.rb b3d4812416 Update docs to use links for github handles hai 1 ano
navigation.rb c8d50bda0f Add documentation for the new DNS command hai 2 meses
robots.txt 3f922dfdb6 Add initial metasploit docs site, generated from the existing wiki %!s(int64=2) %!d(string=hai) anos

README.md

Metasploit docs site

This folder maintains the docs for https://docs.metasploit.com/ and https://github.com/rapid7/metasploit-framework/wiki

Architecture

How it works:

  • build.rb - The main entry point for generating the docs site from the old Github Wiki format files within metasploit-framework.wiki/
  • navigation.rb - Stores the mapping of metasploit-framework.wiki files to the website's navigational structure
  • metasploit-framework.wiki/ - The raw markdown documentation files. Modify these files when updating the site. These files originally came from https://github.com/rapid7/metasploit-framework/wiki
  • metasploit-framework.wiki.old/ - A separate clone of https://github.com/rapid7/metasploit-framework/wiki

Behind the scenes these docs are built and deployed to https://docs.metasploit.com/

Adding pages

You can modify existing documentation files within metasploit-framework.wiki/ with an editor of your choice and send a pull request. To add a new page, modify navigation.rb. Full details are found beside the NAVIGATION_CONFIG constant.

Adding links

For linking to other docs the Github markdown syntax [[link text|relative_path_to_docs]] is used. Behind the scenes these links will be verified at build time to ensure there's no 404 links.

Note: It is also possible to use the syntax [[link text|relative_path_to_docs#section]] - but this navigation will happen client side, and there is no validation that these sections exist at build time. It is possible for future edits to a markdown file to break these links.

Setup

Developer build

Builds the latest docs content from the existing Metasploit Wiki, and serves the files locally:

cd metasploit-framework/docs

bundle install
bundle exec ruby build.rb --serve

Now visit http://127.0.0.1:4000

Production build

Builds the latest docs content from the existing Metasploit Wiki, creates a production Jekyll build, and serves the files locally:

cd metasploit-framework/docs

bundle install
bundle exec ruby build.rb --production --serve

Now visit http://127.0.0.1:4000/metasploit-framework/