Git Product home page Git Product logo

deepin-manual's Introduction

Deepin Manual

For packagers

Packaging environment

Nodejs >= 0.10 is needed; iojs should work too.

Note that because of the node/nodejs name conflict on debian-based distros, it's recommended to use run make dist instead of to run npm install to install dependencies.

Dependency handling

Since we need dependencies from npm and pulling those during packaging would be a problem when the internet situation is not ideal. Also, including those dependencies in the git tree would cost too much space.

This is how we do it: the genereated javascripts and locale files are included in the git source tree. That means: in order to make a distro package, it's not necessary to go through "installing npm packages", "running gulp tasks" and such.

If you want to re-generate those, run make deepclean; and run gulp dist.

For developers

Development environment

In order to run full tests, iojs is required; even nodejs 0.12 with --harmony won't work!

Dependencies

It is worth noting that we included a npm-shrinkwrap.json file. If you ever want to make a dependency adjustment, be sure to re-genereate that file too.

Gulp tasks

Several gulp tasks are provided. You may want to use the following:

  • gulp watch. It watches file changes of the source code.
  • gulp dist. It produces files ready for deployment.
  • gulp translations. It produces UI language json files in the www/nls folder.

For more tasks, please consult the source code of Gulpfile.js.

Debug mode

When DManual starts with environment variable DEBUG being a non-empty value, the program will run in debug mode. It doesn't do much, except it will color most of the HTML blocks and give you some hints about layout problems.

For Application Writers

Manuals installation requirements

Be sure to install the manual for your application to /usr/share/dman/<Application-Name>/<Language-Code>/.

Invocation

To invoke the DMan for a specific application, run:

dman <Application-Name>

Then DMan will open with manual in the most applicable language available. To override this, set LANGUAGE environment variable.

** Note **, you are responsible for making the invoker not hang. So for example in python, do:

import subprocess
subprocess.Popen("dman myApp", stdin = None, stdout = None, stderr = None)

For document writers

Run the following in the terminal: dman dman

deepin-manual's People

Contributors

myml avatar iceleaf916 avatar michaeljayt avatar xinkai avatar lihongwu avatar hualet avatar deepinzhangshuang avatar gs342 avatar felixonmars avatar iceyer avatar leaeasy avatar sbwtw avatar sonald avatar dragondjf avatar pangpangpang3 avatar reionwong avatar zccrs 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.