Git Product home page Git Product logo

liferay-docs's Introduction

Documentation Repository Contents

This repository is intended for storage of Liferay product documentation. Documents are to be comprised of chapter source files in Markdown format. Images referenced in the documents are to be stored in the appropriate images directories. Document sources are stored in directories for their appropriate language (e.g., "en" for English).

Here is the repository's directory structure:

liferay-docs/
 |____ [document dir]/ (e.g. userGuide/, devGuide/, soffice/)
 |      |____ [language dir]/ (e.g. 'en' for English, 'es' for Spanish)
 |      |      |
 |      |      |____ chapters/
 |      |      |      |____ [0-9][0-9]-[subject].markdown
 |      |      |            (e.g. 01-intro.markdown)        
 |      |      |
 |      |      |____ images/ (language specific versions of the default images)
 |      |
 |      |____ code/ (code examples)
 |      |____ drawings/ (source files, such as .odg files, for drawings)
 |      |____ images/ (default images for the document)
 |      |____ build.xml (boiler plate Ant build.file)
 |      |____ doc.properties (project metadata)
 |
 |____ code/ (code for custom Ant tasks)
 |____ guidelines/ (instructions on tools, Markdown conventions, and writing)
 |____ lib/ (JARs for custom Ant tasks)
 |
 |____ README
 |____ build-common.xml
 |____ build.properties
 |____ liferay-book-template.ott
 |____ liferay-book-template-tradepaperback.ott

Document Format Conversion

Documents can be converted from markdown to HTML, epub and ODT formats using Ant targets found in build-common.xml. Override default properties, found in build.properties, by creating your own properties file (e.g., build.[username].properties) to specify your desired property values.

The conversion targets create a build directory (e.g. userGuide/build/) for the current document. This directory receives the Markdown source file, the language specific image files, and the converted document.

Required Software

Conversion Steps

  1. Go to the directory of the document to be converted.

    Example - userGuide,

    cd liferay-docs/userGuide
    
  2. Execute a conversion target to produce the desired format of the document.

    Example - aggregate the chapters into a single Markdown file and convert to HTML.

    ant markdown-to-html
    

    Example - convert a single Markdown chapter file (e.g. 01-intro.markdown) to HTML by passing the file prefix (e.g. 01-intro) as the value for the chapter property.

    ant chapter-to-html -Dchapter=01-intro
    

List all of the ant targets by executing ...

ant -projecthelp

Note, the Windows specific versions of the targets end in "-win" (e.g., markdown-to-html-win).

Override the language property (i.e., lang), specified in the build.properties, by either passing the language value to ant (e.g. -Dlang=es) or by specifying the language in a name/value pair (e.g., lang=es) in your build.[user].properties.

The conversion targets build the results to the respective build directory liferay-docs/[doc.name]/build/[lang]/.

Example - build directory for the userGuide in English,

liferay-docs/
 |____ userGuide/
        |____ build/
               |____ en/
               |      |____ userGuide.html
               |      |____ userGuide.markdown
               |      |____ userGuide.odt
               |
               |____ images/ (language specific images)

Contributing Documentation

To contribute new material or bug fixes, please send pull requests to the respective document managers:

  • Using Liferay Portal (userGuide) - Rich Sezov (GitHub user: sez11a)
  • Developer's Guide (devGuide) - Jim Hinkey (GitHub user: jhinkey)
  • Social Office (soffice) - Jesse Rao (GitHub user: jrao)

Here are the branches for the respective product releases:

  • Liferay Portal 6.2 CE/EE - master
  • Liferay Portal 6.1 CE/EE - 6.1.x

liferay-docs's People

Contributors

afshing avatar brandizzi avatar christoph-frick avatar codyhoag avatar denissignoretto avatar gamerson avatar igr avatar ipeychev avatar jhanda avatar jrao avatar juanferrub avatar juliocamarero avatar justinchoi001 avatar markhealy avatar mdelapenya avatar mwilliams2014 avatar ngaskill avatar rbohl avatar robertodiaz avatar sez11a avatar sezovd avatar vsingleton avatar zenorocha 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.