Repository navigation
Moved the CrateDB-EE documentation to this project #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9d42429
Adapted automation and console feature docs to reuse them as CrateDB-…
juanpardo c9ffdd6
fixup! Adapted automation and console feature docs to reuse them as C…
juanpardo 941ed84
Fixed a broken reference that prevented the project from building
juanpardo 0e4fa90
Updated gitignore for cratedb-ee-docs
juanpardo e202dfc
Main cratedb-ee docs files
juanpardo e1513b7
cratedb-ee-docs readthedocs.yaml
juanpardo 2993e70
Test with symlinks
juanpardo 1e99df3
Readthedocs rename
juanpardo aeb6f04
Changed paths
juanpardo 08d4051
Added the _extra with a robots.txt to cratedb-ee-docs
juanpardo 16be37c
Fixed configuration
juanpardo db90058
Improved the CrateDB EE index pages
juanpardo 9a297f8
fixup! Improved the CrateDB EE index pages
juanpardo d757183
Added cratedb-ee-docs gh action, fixed build
juanpardo 65cd84e
Aligned conf.py files
juanpardo 063f76f
fixup! Aligned conf.py files
juanpardo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: cratedb-ee-docs | ||
| on: | ||
| pull_request: ~ | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| # Allow job to be triggered manually. | ||
| workflow_dispatch: | ||
|
|
||
| # Cancel in-progress jobs when pushing to the same branch. | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| documentation: | ||
| name: Build CrateDB EE docs on ubuntu-latest | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Acquire sources | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.13" | ||
| cache: 'pip' | ||
| cache-dependency-path: | | ||
| cratedb-ee-docs/requirements.txt | ||
|
|
||
| - name: Build CrateDB EE docs | ||
| run: | | ||
| cd cratedb-ee-docs && make check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,5 @@ | |
| .env | ||
| .idea | ||
| *.lint | ||
| cratedb-ee-docs/.env | ||
| cratedb-ee-docs/_build | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| build: | ||
| os: "ubuntu-22.04" | ||
| tools: | ||
| python: "3.11" | ||
|
|
||
| sphinx: | ||
| builder: html | ||
| configuration: cratedb-ee-docs/conf.py | ||
| fail_on_warning: true | ||
|
|
||
| python: | ||
| install: | ||
| - requirements: cratedb-ee-docs/requirements.txt | ||
|
|
||
| version: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| # Licensed to Crate (https://crate.io) under one or more contributor license | ||
| # agreements. See the NOTICE file distributed with this work for additional | ||
| # information regarding copyright ownership. Crate licenses this file to you | ||
| # under the Apache License, Version 2.0 (the "License"); you may not use this | ||
| # file except in compliance with the License. You may obtain a copy of the | ||
| # License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
| # License for the specific language governing permissions and limitations under | ||
| # the License. | ||
| # | ||
| # However, if you have executed another commercial license agreement with Crate | ||
| # these terms will supersede the license and you may use the software solely | ||
| # pursuant to the terms of the relevant commercial agreement. | ||
|
|
||
|
|
||
| # ============================================================================= | ||
| # Crate Docs | ||
| # ============================================================================= | ||
|
|
||
| # The Crate Docs project provides a common set of tools for producing the | ||
| # Crate.io documentation. See <https://github.com/crate/crate-docs/> for more | ||
| # information. | ||
|
|
||
| # This file is taken from the demo Sphinx project available at | ||
| # <https://github.com/crate/crate-docs/blob/main/docs>. This demo docs project | ||
| # provides a reference implementation that should be copied for all Sphinx | ||
| # projects at Crate.io. | ||
|
|
||
| # The Crate Docs build system works by centralizing its core components in the | ||
| # `crate-docs` repository. At build time, this Makefile creates a copy of the | ||
| # this project under the `.crate-docs` directory. This Makefile is an interface | ||
| # for those core components. | ||
|
|
||
|
|
||
| # Upgraded instructions | ||
| # ----------------------------------------------------------------------------- | ||
|
|
||
| # You must pin your Sphinx project to a specific version of the Crate Docs | ||
| # project. You can do this by editing the `build.json` file. Change the JSON | ||
| # `message` value to the desired release number. A list of releases is | ||
| # available at <https://github.com/crate/crate-docs/releases>. | ||
|
|
||
| # Although care has been taken to restrict changes to the core components, you | ||
| # may occasionally need to update your project to match the reference | ||
| # implementation. Check the release notes for any special instructions. | ||
|
|
||
|
|
||
| # Project-specific customization | ||
| # ============================================================================= | ||
|
|
||
| # If you want to customize the build system for your Sphinx project, add lines | ||
| # to this section. | ||
|
|
||
|
|
||
| # Build system integration | ||
| # ============================================================================= | ||
|
|
||
| # This is a boilerplate section is required for integration with the Crate Docs | ||
| # build system. All Sphinx projects using a the same Crate Docs version | ||
| # should have exactly the same boilerplate. | ||
|
|
||
| # IF YOU ARE EDITING THIS FILE IN A REAL SPHINX PROJECT, YOU SHOULD NOT MAKE | ||
| # ANY CHANGES TO THIS SECTION. | ||
|
|
||
| # If you want to make changes to the boilerplate, please make a pull request on | ||
| # the demo Sphinx project in the Crate Docs repository available at | ||
| # <https://github.com/crate/crate-docs/blob/main/docs>. | ||
|
|
||
| .EXPORT_ALL_VARIABLES: | ||
|
|
||
| DOCS_DIR := cratedb-ee-docs | ||
| TOP_DIR := .. | ||
| BUILD_JSON := build.json | ||
| BUILD_REPO := https://github.com/crate/crate-docs.git | ||
| LATEST_BUILD := https://github.com/crate/crate-docs/releases/latest | ||
| CLONE_DIR := .crate-docs | ||
| SRC_DIR := $(CLONE_DIR)/common-build | ||
| SELF_SRC := $(TOP_DIR)/common-build | ||
| SELF_MAKEFILE := $(SELF_SRC)/rules.mk | ||
| SRC_MAKE := $(MAKE) -f $(SRC_DIR)/rules.mk | ||
|
|
||
| # Parse the JSON file | ||
| BUILD_VERSION := $(shell cat $(BUILD_JSON) | \ | ||
| python3 -c 'import json, sys; print(json.load(sys.stdin)["message"])') | ||
|
|
||
| ifeq ($(BUILD_VERSION),) | ||
| $(error No build version specified in `$(BUILD_JSON)`.) | ||
| endif | ||
|
|
||
| # This is a non-essential check so we timeout after only two seconds so as not | ||
| # to frustrate the user when there are network issues | ||
| LATEST_VERSION := $(shell curl -sI --connect-timeout 2 '$(LATEST_BUILD)' | \ | ||
| grep -i 'Location:' | grep -Eoh '[^/]+$$') | ||
|
|
||
| # Skip if no version could be determined (i.e., because of a network error) | ||
| ifneq ($(LATEST_VERSION),) | ||
| # Only issue a warning if there is a version mismatch | ||
| ifneq ($(BUILD_VERSION),$(LATEST_VERSION)) | ||
| define version_warning | ||
| You are using Crate Docs version $(BUILD_VERSION), however version \ | ||
| $(LATEST_VERSION) is available. You should consider upgrading. Follow the \ | ||
| instructions in `Makefile` and then run `make reset`. | ||
| endef | ||
| endif | ||
| endif | ||
|
|
||
| # Default rule | ||
| .PHONY: help | ||
| help: $(CLONE_DIR) | ||
| @ $(MAKE) version-warn | ||
| @ $(SRC_MAKE) $@ | ||
|
|
||
| .PHONY: version-warn | ||
| version-warn: | ||
| @ # Because version numbers may vary in length, we must wrap the warning | ||
| @ # message at run time to be sure of correct output | ||
| @ if test -n '$(version_warning)'; then \ | ||
| printf '\033[33m'; \ | ||
| echo '$(version_warning)' | fold -w 79 -s; \ | ||
| printf '\033[00m\n'; \ | ||
| fi | ||
|
|
||
| ifneq ($(wildcard $(SELF_MAKEFILE)),) | ||
| # The project detects itself and fakes an install of its own core build rules | ||
| # so that it can test itself | ||
| $(CLONE_DIR): | ||
| @ printf '\033[1mInstalling the build system...\033[00m\n' | ||
| @ mkdir -p $@ | ||
| @ cp -R $(SELF_SRC) $(SRC_DIR) | ||
| @ printf 'Created: $(CLONE_DIR)\n' | ||
| else | ||
| # All other projects install a versioned copy of the core build rules | ||
| $(CLONE_DIR): | ||
| @ printf '\033[1mInstalling the build system...\033[00m\n' | ||
| @ git clone --depth=1 -c advice.detachedHead=false \ | ||
| --branch=$(BUILD_VERSION) $(BUILD_REPO) $(CLONE_DIR) | ||
| @ printf 'Created: $(CLONE_DIR)\n' | ||
| endif | ||
|
|
||
| # Don't pass through this target | ||
| .PHONY: Makefile | ||
| Makefile: | ||
|
|
||
| # By default, pass targets through to the core build rules | ||
| .PHONY: | ||
| %: $(CLONE_DIR) | ||
| @ $(MAKE) version-warn | ||
| @ $(SRC_MAKE) $@ | ||
|
|
||
| .PHONY: reset | ||
| reset: | ||
| @ printf '\033[1mResetting the build system...\033[00m\n' | ||
| @ rm -rf $(CLONE_DIR) | ||
| @ printf 'Removed: $(CLONE_DIR)\n' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../docs/_assets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../docs/_extra/robots.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "schemaVersion": 1, | ||
| "label": "docs build", | ||
| "message": "2.2.0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| from crate.theme.rtd.conf import * | ||
|
|
||
| # Disable version chooser. | ||
| html_context.update({ | ||
| "display_version": False, | ||
| "current_version": None, | ||
| "versions": [], | ||
| }) | ||
|
|
||
| project = "CrateDB Enterprise Edition" | ||
| html_title = project | ||
|
|
||
| url_path = "docs/crate/enterprise" | ||
| html_baseurl = "https://cratedb.com/%s/" % url_path | ||
|
|
||
| exclude_patterns += ["_build", "Thumbs.db", ".DS_Store"] | ||
|
|
||
| source_suffix = ['.rst', '.md'] | ||
|
|
||
| linkcheck_ignore = [ | ||
| # Example link only, not meant to exist | ||
| "http://iss_hostname:8080/api/v2/meta/jwk/", | ||
| # 403 for non-browser clients (bot protection) | ||
| "https://www.ibm.com/docs/", | ||
| ] | ||
|
|
||
|
|
||
| linkcheck_timeout = 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../docs/cluster/automation.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../../docs/cluster/console.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ======== | ||
| Features | ||
| ======== | ||
|
|
||
| To access the CrateDB EE Console, simply log in with any of your CrateDB users credentials. | ||
|
|
||
| CrateDB EE Console provides an overview of your CrateDB cluster. | ||
| You can also explore your table schemas, check the users in your cluster and a monitoring | ||
| section where you can see the state of your CrateDB nodes and tables. | ||
|
|
||
| In addition to that, the following you can also find the following features: | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| console | ||
| automation | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| .. CrateDB Enterprise Edition documentation master file | ||
|
|
||
| CrateDB Enterprise Edition | ||
| ========================== | ||
|
|
||
| CrateDB Enterprise Edition brings additional features to your on-premises CrateDB cluster. | ||
|
plaharanne marked this conversation as resolved.
Resolved
|
||
|
|
||
| The CrateDB EE Console can be installed separately, allows you to log in with your own | ||
| CrateDB users and brings a web interface with many features like monitoring, a SQL | ||
| console, running queries periodically and more! | ||
|
|
||
| .. toctree:: | ||
| :titlesonly: | ||
|
|
||
| install/index | ||
| features/index | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.