You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by su...@apache.org on 2021/07/21 01:07:52 UTC

[druid] branch master updated: Updates to source and doc build pages (#11464)

This is an automated email from the ASF dual-hosted git repository.

suneet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new aa8c615  Updates to source and doc build pages (#11464)
aa8c615 is described below

commit aa8c615ac24a10415c98b34070bfec0a9c9f5103
Author: Paul Rogers <pa...@users.noreply.github.com>
AuthorDate: Tue Jul 20 18:07:34 2021 -0700

    Updates to source and doc build pages (#11464)
    
    * Updates to source and doc build pages.
    
    Clarifies a few points for newbies.
    
    * Fixed spelling error
    
    And added spellcheck info to website README file.
---
 README.md                 |  2 +-
 docs/development/build.md | 34 ++++++++++++++++++++++------------
 website/README.md         | 46 ++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 67 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index 9d5242c..6920d6a 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@
 
 Druid is a high performance real-time analytics database. Druid's main value add is to reduce time to insight and action.
 
-Druid is designed for workflows where fast queries and ingest really matter. Druid excels at powering UIs, running operational (ad-hoc) queries, or handling high concurrency. Consider Druid as an open source alternative to data warehouses for a variety of use cases.
+Druid is designed for workflows where fast queries and ingest really matter. Druid excels at powering UIs, running operational (ad-hoc) queries, or handling high concurrency. Consider Druid as an open source alternative to data warehouses for a variety of use cases. The [design documentation](https://druid.apache.org/docs/latest/design/architecture.html) explains the key concepts.
 
 ### Getting started
 
diff --git a/docs/development/build.md b/docs/development/build.md
index 5f85904..b59dddc 100644
--- a/docs/development/build.md
+++ b/docs/development/build.md
@@ -23,30 +23,32 @@ title: "Build from source"
   -->
 
 
-You can build Apache Druid directly from source. Please note that these instructions are for building the latest stable version of Druid.
-For building the latest code in master, follow the instructions [here](https://github.com/apache/druid/blob/master/docs/development/build.md).
-
+You can build Apache Druid directly from source. Use the version of this page
+that matches the version you want to build.
+For building the latest code in master, follow the latest version of this page
+[here](https://github.com/apache/druid/blob/master/docs/development/build.md):
+make sure it has `/master/` in the URL.
 
 #### Prerequisites
 
-##### Installing Java and Maven:
+##### Installing Java and Maven
+
 - JDK 8, 8u92+. We recommend using an OpenJDK distribution that provides long-term support and open-source licensing,
   like [Amazon Corretto](https://aws.amazon.com/corretto/) or [Azul Zulu](https://www.azul.com/downloads/zulu/).
 - [Maven version 3.x](http://maven.apache.org/download.cgi)
 
-##### Other Dependencies
-- for distribution build, Python and yaml module are required
+##### Other dependencies
 
+- Distribution builds require Python 3.x and the `pyyaml` module
 
-##### Downloading the source:
+##### Downloading the source
 
 ```bash
 git clone git@github.com:apache/druid.git
 cd druid
 ```
 
-
-#### Building the source
+#### Building from source
 
 The basic command to build Druid from source is:
 
@@ -71,13 +73,21 @@ mvn clean install -Papache-release,dist,rat -DskipTests
 ```
 #### Potential issues
 
-##### Issue
+##### Missing `pyyaml`
+
 You are building Druid from source following the instructions on this page but you get
 ```
 [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (generate-binary-license) on project distribution: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
 ```
 
 Resolution: Make sure you have Python installed as well as the `yaml` module:
-```
+
+```bash
 pip install pyyaml
-```
\ No newline at end of file
+```
+
+On some systems, ensure you use the Python 3.x version of `pip`:
+
+```bash
+pip3 install pyyaml
+```
diff --git a/website/README.md b/website/README.md
index 4958796..3f51ad1 100644
--- a/website/README.md
+++ b/website/README.md
@@ -21,10 +21,52 @@
 
 This website was created with [Docusaurus](https://docusaurus.io/).
 
-To edit this documentation run:
+To view documentation run:
 
 `npm install`
 
-Then run
+Then run:
 
 `npm start`
+
+The current version of the web site appears in your browser. Edit pages with
+your favorite editor. Refresh the web page after each edit to review your changes.
+
+## Dependencies
+
+* [NodeJS](https://nodejs.org/en/download/). Use the version Docusaurus specifies, not a
+newer one. (For example, if 12.x is requested, don't install 16.x.)
+Docusaurus may require a version
+newer than that available in your Linux package repository, but older than the
+latest version. See
+[this page](https://github.com/nodesource/distributions/blob/master/README.md) to
+find the version required by Docusaurus.
+* The [Yarn](https://classic.yarnpkg.com/en/) dependency from Docusaurus is optional.
+(This Yarn is not the Hadoop resource manager, it is a package manager for Node.js).
+* [Docusaurus](https://docusaurus.io/docs/installation). Installed automatically
+as part of the the above `npm` commands.
+
+## Variables
+
+Documentation pages can refer to a number of special variables using the
+`{{var}}` syntax:
+
+* `DRUIDVERSION` - the version of Druid in which the page appears. Allows
+creating links to files of the same version on GitHub.
+
+The variables are not replaced when running the web site locally using the
+`start` command above.
+
+## Spellcheck
+
+Please run a spellcheck before issuing a pull request to avoid a build failure
+due to spelling issues. Run:
+
+```bash
+npm run link-lint
+npm run spellcheck
+```
+
+If you introduce new (correctly spelled) project names or technical terms, add
+them to the dictionary in the `.spelling` file in this directory. Also, terms
+enclosed in backticks are not spell checked. Example: \``symbolName`\`

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org