Skip to content

Commit

Permalink
Move "libraries.md" out of docs, onto the main site. (apache#3159)
Browse files Browse the repository at this point in the history
  • Loading branch information
gianm authored and fjy committed Jun 17, 2016
1 parent 674f940 commit c12712e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 78 deletions.
9 changes: 5 additions & 4 deletions docs/_bin/make-redirects.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ def normalize_target(redirect):
source = redirect["source"]
target = redirect["target"]
source_file = os.path.join(docs_directory, source)
target_file = os.path.join(docs_directory, normalize_target(redirect))

# Ensure redirect source doesn't exist yet.
if os.path.exists(source_file):
raise Exception('Redirect source is an actual file: ' + source)

# Ensure target *does* exist.
if not os.path.exists(target_file) and source not in all_sources:
raise Exception('Redirect target does not exist for source: ' + source)
# Ensure target *does* exist, if relative.
if not target.startswith("/"):
target_file = os.path.join(docs_directory, normalize_target(redirect))
if not os.path.exists(target_file) and source not in all_sources:
raise Exception('Redirect target does not exist for source: ' + source)

# Write redirect file
with open(source_file, 'w') as f:
Expand Down
3 changes: 2 additions & 1 deletion docs/_redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{"source": "Ingestion-overview.html", "target": "tutorials/ingestion.html"},
{"source": "Ingestion.html", "target": "ingestion/index.html"},
{"source": "Integrating-Druid-With-Other-Technologies.html", "target": "development/integrating-druid-with-other-technologies.html"},
{"source": "Libraries.html", "target": "development/libraries.html"},
{"source": "Libraries.html", "target": "/libraries.html"},
{"source": "LimitSpec.html", "target": "querying/limitspec.html"},
{"source": "Logging.html", "target": "configuration/logging.html"},
{"source": "Metadata-storage.html", "target": "dependencies/metadata-storage.html"},
Expand Down Expand Up @@ -95,6 +95,7 @@
{"source": "design/concepts-and-terminology.html", "target": "index.html"},
{"source": "development/approximate-histograms.html", "target": "extensions-core/approximate-histograms.html"},
{"source": "development/datasketches-aggregators.html", "target": "extensions-core/datasketches-aggregators.html"},
{"source": "development/libraries.html", "target": "/libraries.html"},
{"source": "development/kafka-simple-consumer-firehose.html", "target": "extensions-contrib/kafka-simple.html"},
{"source": "development/select-query.html", "target": "../querying/select-query.html"},
{"source": "index.html", "target": "design/index.html"},
Expand Down
73 changes: 0 additions & 73 deletions docs/content/development/libraries.md

This file was deleted.

0 comments on commit c12712e

Please sign in to comment.