Giter VIP home page Giter VIP logo

documentation-builder's People

Contributors

dhersch1 avatar joncamfield avatar seamustuohy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

hackatom dhersch1

documentation-builder's Issues

Create build tests in makefile to find dead links.

From SAFETAG/SAFETAG#31

We have encountered a few links that have died, even in the short initial componsition time-frame. We need to create a test that grabs every link and tests to see if they are up. Ideally, it would actually check against an md5 of each page to make sure that websites that don't throw a 404 are still seen as broken links.

This would also have to scrape off the #page=## from pdf's to not cause multiple links to the same pdf to be hit multiple times.

NOTE: egrep -hro "http.*\.pdf" * | sort | uniq

Possibly using cryptsetup

update wkhtmltopdf?

wkhtmltopdf has a new release (0.12.5) - we need to test if it works in a default install and if so to update the install docs.

current Wkhtmltopdf breaks metasploit and armatage on kali-linux

SAFETAG/SAFETAG#77

When trying to install QT-compiled version of wkhtmltopdf used for html-pdf conversion of current SAFETAG documentation metasploit and armatage are broken.

  • Used debian wheezy 36bit download for wkhtmltopdf
  • ERROR encountered:
    When using the graphical installer faced the following error.
GDBuc.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5ftransaction_5ferror.Code4:SimulateInstallFiles not supported by backend

An earlier version of wkhtmltopdf is a required package by other applications.

Using the following command allowed the latest version to be installed. But, it set metsploit, armatage and kali-linux-full to be de-installed because they don't recognize the QT version to be the same package as the one they require. As long as you don't use apt-get after this they won't get de-installed. But, we don't use them anyway with SAFETAG core so this currently works.

apt-get remove wkhtmltopdf
dpkg --install  [WKHTMLTOPDF.deb]
apt-get install -f

(this is an upstream problem, but as noted, "This should stay open. We need to actually find an upstream fix to this. SAFETAG breaking metasploit is just silly."

Create Debian package

The current make based installer is a dependency hell. As such, a debian package is the best path forward.

There are concerns.

  • What is the best installation path for a package that we desire the user to edit.
  • Do we add basic git pull ability into the package so that the user can keep their SAFETAG content up to date before they build?
  • Should this be a seperate repository that pulls from the git content and places it in a specific directory?
  • How do we best incorporate GUI control into a seperate package like this?

Ability to build individual sections with refs, appendices

Moved in from SAFETAG/SAFETAG#82

It should be possible to build a specific SAFETAG guide section that pulls in the relevant endnotes and appendices (e.g. example/ content) for that section.


This is very possible. Currently the makefile just targets the main index's. We would want to actually script up the current builder to be more than a makefile. Once we do this it could do much much more. Here is what it would look like in make speak, but we would want to actually transition it into a language that is robust.

INDEX=path/to/index/file.md
INDEX_NAME=file_name
create_your_own: | $(SRC_DIR) $(DOC_DIR)
    modules/markdown-pp/markdown-pp.py $(INDEX) $(SRC_DIR)/$(INDEX_NAME).md
    pandoc -s --variable=title:"$(INDEX_NAME)" \
        --template=theme/html5.template \
        --to=html5 $(SRC_DIR)/$(INDEX_NAME).md \
        --output=$(SRC_DIR)/$(INDEX_NAME).html 
    wkhtmltopdf --user-style-sheet theme/core.css \
        --title "$(INDEX_NAME)" \
        --disable-smart-shrinking  \
        --load-error-handling skip \
        --load-media-error-handling skip \
        --footer-center "Page [page] of [toPage]" \
        --header-left [doctitle] \
        --outline \
        --outline-depth 2 \
        $(SRC_DIR)/$(INDEX_NAME).html $(DOC_DIR)/$(INDEX_NAME).pdf || true


Note that this is very close, but due to the SAFETAG per-chapter indices being at a different directory level than the master indices, the copy to tmp/.../target must stay at the root of the content, but the ../ structure in the index/ files can't correctly reference out.

This might end up being a SAFETAG issue again, or an extra doc builder option for the "working" directory?

Test updated python3 version of markdown-pp and update repo

potential reason behind the ModuleNotFoundError: No module named 'Processor' errors are python version mismatches. Current markdown-pp is tagged to an old release (at least following the current build instructions and scripts). We need to test if the newer markdown-pp version works with python 3.7.1 and the rest of the build process

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.