Use git submodule to deduplicate demo code.

It seems more managable than duplicated code, but it is not yet ideal
either. Some subideal aspects:

The demo on the website currently has the header and footer of the main
page; this is now removed. Is that an issue?

It now puts the demo at /content/demo, but for this has to put style.css
into /content/. We could consider to instead put the whole /web/dist
from upstream into /content/web (or whatever name), but then the demo
URL will change to be web/demo.

Files get removed, built and copied in a single line in package.json.
Better suggestions?

One needs to keep the submodule in sync; may be okay, updating the demo
is a manual process already anyway.
14 files changed
tree: 93291ee9b68efe3bb4898815a5f81abd0d64f7a5
  1. content/
  2. .gitmodules
  3. package.json
  4. README.md
README.md

Apache Annotator (incubating) Website

The site is currently in static HTML hosted out of the content/ directory.

Any pre-generated/rendered content or documentation should be added to additional folders in the root of this repo.

Publishing

Currently, master and asf-site should be kept in sync. The asf-site branch gets published to an Apache HTTPD static hosting environment run by the Apache infrastructure team.

Developing

Requirements

This website repository contains the main project repository as a git submodule, in order to build its demo without duplicating the code.

Run git submodule init && git submodule update to pull in the submodule.

Run yarn install to install development dependencies.

Run yarn build to build the demo code (it will overwrite content/demo).

Organizing

We also use the Milestones for this repo on GitHub to track our quarterly board reports.

Web site issues and PRs are still more than welcome, though!

License

Apache License 2.0 (obviously...:wink:)