General

Components

Community

Development

TDF

Website Development

Introduction

The pages on this website are written in [markdown syntax] 1 and stored in our GIT repo at [src/site] 2

A subproject contained within the repo is used to generate the website from the Markdown text files and the resources stored in the content directory.

This Java solution is meant as an interim solution as we do not want to reinvent the wheel. Instead we are likely switching to Sphinx.

Overview

This website development page is divided into:

Setup

Download the repo

  1. Check out the repository:
git clone https://github.com/tdf/odftoolkit
  1. Install Gradle build system, see https://gradle.org/install/

  2. Build the project:

cd odftoolkit/src/site/java
./build-html.sh

Directory Layout

Content directory

The src/site/site/content/odftoolkit directory contains web content - markdown, html, javascript, css, images and other files. Resources such as images, CSS files and ZIP files are copied as is to the web site during the build.

Local Development

Edit the site

Using your favorite editors edit the site content.

Build the site

Run this to generate the website into GitHub Pages directory <ODFTOOLKIT_ROOT>/docs

cd odftoolkit/src/site/java
./build-html.sh

Testing your results

Use your GitHub Pages on your GitHub fork using your Git branch and /docs as root! Use a broken link checker (e.g. https://www.drlinkcheck.com/) testing on your GitHub HTML deployment!

Building JavaDoc and publishing the JavaDoc

JavaDoc is generated as part of by calling from the root of the project the command:

mvn install

Run copy-javadoc.sh to build & copy the created API directories into the <ODFTOOLKIT_ROOT>/docs/api directory and remove any prior files within.

(cd src/site && ./copy-javadoc.sh)

Submitting your results

Committer

Do the appropriate combination of git status, git add, and git commits.

Contributor

For further information see the GitHub help on creating a pull request from a fork page.

Impressum (Legal Info) | Privacy Policy (Datenschutzerklärung) | Statutes (non-binding English translation) - Satzung (binding German version) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Apache License, v2.0. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License v2.0. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy. LibreOffice was based on OpenOffice.org.