2.0.14 • Published 4 months ago

nobj-statify v2.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

nobj-docfolder

A tool to generate a HTML Website out of a folder with Markdown files.

  • supports arbitrary folders
  • relative paths within documents
  • small-footprint responsive application
    • GDPR Compliant: Will delay loading external content until cookies are accepted
  • SEO tags are customizable and automatically use data from the MD file

How to Use

You need to create the following structure in a folder of your choice (let´s call it "doc")

your_project
    doc
        metadata.json
        images.json
        docroot/
            index.md
            .
            .
            image.jpg
            
            chapter_1/
                index.md
                image.png

then just type

nobj-docfolder doc/ out/

File Templates

metadata.json

The file Metadata.JSON contains

  • The Documentation Project Title
  • The Canonical Domain where it will be hosted
  • The Default image to use
  • All the META TAGS as inside the meta Array (check out it´s very simple, you just include the values of your desired META TAGS as a JSON Object)
  • All the REST IF HTML TAGS inside the rest Array. You can include any other HTML that you need.

The following example would set:

  • Responsive metatags
  • OpenGraph tags (for SEO + share links in ie. whatsapp)
  • Rest of HTML:
    • The stylesheet and Javascript (required)
    • Some other LINK tags good for seo / mobile browsing

All these are really optional except the Link to the Stylesheet and Javascript application, but with this example you have a full SEO working example.

{
  "title": "My Project Documentation",
  "canonical": "https://myproject.domain/doc",
  "domain": "myproject.domain",
  "image": "https://myproject.domain/logo.jpg",
  "meta": [
    { "charSet": "utf-8" },
    { "name": "robots", "content": "all" },
    { "lang": "en" },
    { "name": "viewport", "content": "width=device-width, maximum-scale=5, user-scalable=yes, initial-scale=1" },
    { "name": "theme-color", "content": "#fff"},
    { "name": "mobile-web-app-capable", "content": "yes" },
    { "name": "apple-mobile-web-app-capable", "content": "yes" },
    { "name": "apple-mobile-web-app-status-bar-style", "content": "white" },
    { "property": "og:type", "content": "article"},
    { "property": "og:site_name", "content": "My Site" },
    { "name": "twitter:site", "content": "@mytwitter" }
  ],
  "rest": [
    
    {"t": "link", "rel": "stylesheet", "href": "/bin/doc/lib.css?v28"},
    {"t": "script","src": "/bin/doc/lib.js?v28"}

    {"t": "link", "rel": "icon", "type": "image/x-icon", "href": "/bin/web/res/icon-1024.png"},
    {"t": "link", "rel": "apple-touch-icon","href": "/bin/web/res/icon-1024.png"},
    {"t": "link","rel": "icon","sizes": "70x70", "href": "/bin/web/res/icon-1024.png"},
    {"t": "link", "rel": "shortcut icon", "href": "/bin/web/res/icon-1024.png"},
  ]
}

images.json

This file just contains an Array of Images, using a compatible unsplash collection format.

  • A random image will be picked as a decoration. It will be used when browsing the documentation in a big screen.
[
  {
    "urls": {
      "regular": "https://url_of_image"
    },
    "user": {
      "name": "Some Body",
      "links": {
        "html": "https://unsplash.com/..."
      }
    }
  },
  .
  .
  .
]
1.1.29

5 months ago

1.1.28

5 months ago

2.0.2

4 months ago

2.0.5

4 months ago

2.0.4

4 months ago

2.0.7

4 months ago

1.1.30

4 months ago

2.0.6

4 months ago

2.0.9

4 months ago

2.0.8

4 months ago

1.1.34

4 months ago

1.1.33

4 months ago

1.1.32

4 months ago

1.1.31

4 months ago

1.1.38

4 months ago

1.1.37

4 months ago

2.0.1

4 months ago

1.1.36

4 months ago

2.0.0

4 months ago

1.1.35

4 months ago

1.1.39

4 months ago

1.1.41

4 months ago

1.1.40

4 months ago

1.1.45

4 months ago

1.1.44

4 months ago

1.1.43

4 months ago

1.1.42

4 months ago

1.1.49

4 months ago

1.1.48

4 months ago

1.1.47

4 months ago

1.1.46

4 months ago

1.1.9

5 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

2.0.13

4 months ago

2.0.14

4 months ago

2.0.11

4 months ago

1.1.52

4 months ago

2.0.12

4 months ago

1.1.51

4 months ago

1.1.50

4 months ago

2.0.10

4 months ago

1.1.56

4 months ago

1.1.12

5 months ago

1.1.55

4 months ago

1.1.11

5 months ago

1.1.54

4 months ago

1.1.10

5 months ago

1.1.53

4 months ago

1.1.16

5 months ago

1.1.59

4 months ago

1.1.15

5 months ago

1.1.58

4 months ago

1.1.57

4 months ago

1.1.13

5 months ago

1.1.19

5 months ago

1.1.18

5 months ago

1.1.17

5 months ago

1.1.63

4 months ago

1.1.62

4 months ago

1.1.61

4 months ago

1.1.60

4 months ago

1.1.23

5 months ago

1.1.22

5 months ago

1.1.21

5 months ago

1.1.64

4 months ago

1.1.20

5 months ago

1.1.27

5 months ago

1.1.26

5 months ago

1.1.25

5 months ago

1.1.24

5 months ago

1.1.2

1 year ago