Coder Social home page Coder Social logo

open-source-documentation's Introduction

ditanote

Simple Private Knowledge Base with DITA Markdown

Prerequisite

Setup

Before you start, you need to finish the following tasks:

  1. Create .backstage/note.properties and add the followings. Also you need to replace <<PATH_TO_THIS_PROJECT>> with your environment.

    # Task
    args.gen.task.lbl = YES
    
    # Location of the copied .css file relative to the output:
    args.csspath = css
    
    # Copy css
    args.copycss = YES
    
    args.css = style.css
    args.cssroot = <<PATH_TO_THIS_PROJECT>>/ditanote/.backstage/
    
  2. Create dir and put the markdown contents

    This template includes sample dir tech, but if you need to add another dir, you need to follow steps:

    1. Create a dir (e.g. food)

    2. Put a index.md into the dir with the following content.

      # Food {.topic}
      Food related topic
      
    3. Add the relative path to the above index.md into the note.ditamap under the project root dir

    4. Add the relative path to the above created dir into the ditadirs.txt under the .backstage dir

Commands

You can find the command in Makefile The flow is Create Map File (which files will be converted and displayed) -> Build Output using Map File.

You can put these output into your web server(e.g. nginx) for your private knowledge base.

html output

  • Build html: make html

    The output will be put into out dir

The output is should be like the following:

html output image

book output

Before you start, you need to run sudo npm i -g gitbook-cli

  • Build gitbook: make book

    The output will be put into out/_book dir

  • Build gitbook and serve: make book-serve

The output is should be like the following:

book output image

Notes

  • These links might be your help.

  • Gitbook CLI is under the maintainance mode and active development is stopped. This project is using it for gitbook based output creation. We need to pay attention to the Gitbook CLI's project status and npm repo's condition.

open-source-documentation's People

Contributors

bingboom avatar

Watchers

 avatar

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.