This is the documentation for contributing to an individual wiki. Please create an issue for any unclear or missing information. Documentation for contributing to the theme repository is a WIP.
To start contributing, fork the repository and make your changes. After you are done making your changes submit a pull request to the main repository with an explanation of your changes. For any help, please create an issue.
To edit existing content in a wiki, navigate to the page you would like to edit on the website. Look at the URL and match that to the directory structure of the repo.
If you want to edit https://sqlwiki.netspi.com/attackQueries/persistence
, you would navigate to https://github.com/[YOUR_USERNAME]/SQLInjectionWiki/attackQueries/persistence.html
and make your changes in that file. If you are having trouble finding a file try searching a few words from that page in the Github search bar.
If you would like to do heavier development and need a local version for testing, follow the instructions here.
Follow the styles already set in the existing files if not listed below.
- All code snippets should be wrapped in
<code></code>
- All top headers should be
<h3></h3>
- All sub section headers should be
<h4 class="subheading"></h4>
- Top level descriptions should be
<p class="readableText"></p>
- Secondary descriptions should just be
<p></p>
- All external links should be
<a target="_blank" rel="noopener" href="[link]"></a>
There are only 3 types of sections allowed through our navigation style.
- Clickable sections
- Clickable sections with children
- Non-clickable sections with children
Non-clickable sections are typically used as a title header for their children, when the children grouping don't need a description (i.e. "Miscellanious"). Clickable sections with children typically utilize the clickable section as a place to give an overview of the children.
To add a new section or child place it in the appropriate location.
- /sectionName/index.html #For the clickable section
- /sectionName/childName.html #For each child
- /sectionName.html #For the clickable sectoin
- /sectionName/childName.html #For each child
After adding a new section, modify the _data/nav.yml file and add the section in its proper place. There should only be 3 navigation types as stated in Section Types.
When referencing a page through an href or other link tag use the following guidelines. Pay close attention to the existence or lack of a trailing backslash:
- For the section link use /sectionName/
- For the children links use /sectionName/childName
- /sectionName
- /sectionName/childName