Skip to content
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

doc: refactor documentation #3983

Merged
merged 44 commits into from Mar 25, 2019
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
cf2488f
doc: refactor menu
yesnault Feb 28, 2019
0092d58
wip
yesnault Mar 1, 2019
d7487f9
wip
yesnault Mar 2, 2019
d04b8b7
wip
yesnault Mar 2, 2019
61eb7ed
wip
yesnault Mar 2, 2019
548c243
wip
yesnault Mar 2, 2019
fb9d5d9
wip
yesnault Mar 2, 2019
c8cb90e
wip
yesnault Mar 2, 2019
9f26968
wip
yesnault Mar 2, 2019
0f33a90
wip
yesnault Mar 2, 2019
c8e1c8d
wip
yesnault Mar 2, 2019
dc94aec
wip
yesnault Mar 2, 2019
0098265
wip
yesnault Mar 4, 2019
a83571e
mobile on land
yesnault Mar 12, 2019
d5c23b5
wip mobile
yesnault Mar 12, 2019
f88c110
mobile
yesnault Mar 12, 2019
d7acd84
wip
yesnault Mar 13, 2019
5b03dd4
wip
yesnault Mar 13, 2019
f423ba4
wip integrations
yesnault Mar 13, 2019
0d4236d
wip
yesnault Mar 13, 2019
8d98923
wip
yesnault Mar 13, 2019
46fd936
wip k8s integration
yesnault Mar 14, 2019
12fb6e3
wip
yesnault Mar 18, 2019
5825e99
wip
yesnault Mar 18, 2019
94e8325
wip
yesnault Mar 18, 2019
bb920be
wip
yesnault Mar 18, 2019
bb3f565
wip
yesnault Mar 18, 2019
be6b8d0
wip
yesnault Mar 18, 2019
c362ba9
wip
yesnault Mar 18, 2019
ef0af34
wip
yesnault Mar 19, 2019
56bc006
wip
yesnault Mar 19, 2019
af274b9
wip
yesnault Mar 19, 2019
a0eb7b2
wip
yesnault Mar 19, 2019
b66d2ae
wip
yesnault Mar 19, 2019
107cb61
btn github right top
yesnault Mar 19, 2019
adf307f
wip
yesnault Mar 20, 2019
0be6093
Merge branch 'master' into ye-refactor-doc
yesnault Mar 20, 2019
f246b20
configuration files action & worker model
yesnault Mar 20, 2019
15f5498
hugo extended
yesnault Mar 21, 2019
d04fb4d
doc: application file format (#4068)
fsamin Mar 22, 2019
7f81e15
doc: environment files (#4076)
fsamin Mar 22, 2019
6041f60
doc: environment config file precision (#4077)
fsamin Mar 22, 2019
1fd99b9
GitHub integration
yesnault Mar 23, 2019
821df46
improve search
yesnault Mar 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -6,6 +6,7 @@ doc:
ifndef GEN_PATH
$(error GEN_PATH is undefined)
endif
# export GEN_PATH=$HOME/src/github.com/ovh/cds/docs/content/docs/components
$(TARGET_CDSCTL) doc $(GEN_PATH)
$(TARGET_WORKER) doc $(GEN_PATH)
$(TARGET_ENGINE) doc $(GEN_PATH) ./
Expand Down
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -48,18 +48,18 @@ Docker-Compose or Helm are your friends, see [Ready To Run Tutorials](https://ov

### Why CDS? Discover the Origins

- [Self-Service](https://ovh.github.io/cds/gettingstarted/concepts/why_cds/#1-self-service)
- [Horizontal Scalability](https://ovh.github.io/cds/gettingstarted/concepts/why_cds/#2-horizontal-scalability)
- [High Availability](https://ovh.github.io/cds/gettingstarted/concepts/why_cds/#3-high-availability)
- [Pipeline Reutilisability](https://ovh.github.io/cds/gettingstarted/concepts/why_cds/#4-pipeline-reutilisability)
- [Rest API](https://ovh.github.io/cds/gettingstarted/concepts/why_cds/#5-rest-api)
- [Customizable](https://ovh.github.io/cds/gettingstarted/concepts/why_cds/#6-customizable)
- [Self-Service](https://ovh.github.io/cds/about/why_cds/#1-self-service)
- [Horizontal Scalability](https://ovh.github.io/cds/about/why_cds/#2-horizontal-scalability)
- [High Availability](https://ovh.github.io/cds/about/why_cds/#3-high-availability)
- [Pipeline Reutilisability](https://ovh.github.io/cds/about/why_cds/#4-pipeline-reutilisability)
- [Rest API](https://ovh.github.io/cds/about/why_cds/#5-rest-api)
- [Customizable](https://ovh.github.io/cds/about/why_cds/#6-customizable)

### What is a CDS workflow?

Most of the CI/CD Tools play with jobs inside a pipeline. CDS introduce a new concept named `CDS Workflows`.
A [CDS Workflow](https://ovh.github.io/cds/gettingstarted/concepts/workflow/) allows you to chain pipelines with triggers.
A [pipeline](https://ovh.github.io/cds/gettingstarted/concepts/pipeline/) is structured in sequential [stages](https://ovh.github.io/cds/gettingstarted/concepts/stage/) containing one or multiple concurrent [jobs](https://ovh.github.io/cds/gettingstarted/concepts/job/).
A [CDS Workflow](https://ovh.github.io/cds/docs/concepts/workflow/) allows you to chain pipelines with triggers.
A [pipeline](https://ovh.github.io/cds/docs/concepts/pipeline/) is structured in sequential [stages](https://ovh.github.io/cds/docs/concepts/stage/) containing one or multiple concurrent [jobs](https://ovh.github.io/cds/docs/concepts/job/).


### Can I use it in production?
Expand Down Expand Up @@ -112,7 +112,7 @@ All the features of the table are detailed below.

#### Pipeline

Ability to run multiple jobs simultaneously while keeping an isolation between them. [See doc about stages & jobs inside a pipeline](https://ovh.github.io/cds/gettingstarted/concepts/pipeline/). A pipeline is started with a context: 0 or 1 application, 0 or 1 environment.
Ability to run multiple jobs simultaneously while keeping an isolation between them. [See doc about stages & jobs inside a pipeline](https://ovh.github.io/cds/docs/concepts/pipeline/). A pipeline is started with a context: 0 or 1 application, 0 or 1 environment.

#### Workflow

Expand Down Expand Up @@ -178,7 +178,7 @@ Please read: https://ovh.github.io/cds/workflows/pipelines/requirements/service/

A remote cache is used by a team of developers and/or a continuous integration (CI) system to share build outputs. If your build is reproducible, the outputs from one machine can be safely reused on another machine, which can make builds significantly faster

Doc: https://ovh.github.io/cds/cli/worker/cache/
Doc: https://ovh.github.io/cds/docs/components/worker/cache/

#### Enterprise Notification Bus

Expand Down
2 changes: 1 addition & 1 deletion cli/README.md
@@ -1,3 +1,3 @@
# CDS - Command Line Interface

see https://ovh.github.io/cds/cli/cdsctl/
see https://ovh.github.io/cds/docs/components/cdsctl/
File renamed without changes.
5 changes: 2 additions & 3 deletions cli/cdsctl/workflow_as_code.go
Expand Up @@ -20,10 +20,9 @@ import (
var workflowInitCmd = cli.Command{
Name: "init",
Short: "Init a workflow",
Long: `[WARNING] THIS IS AN EXPERIMENTAL FEATURE
Initialize a workflow from your current repository, this will create yml files and push them to CDS.
Long: `Initialize a workflow from your current repository, this will create yml files and push them to CDS.

Documentation: https://ovh.github.io/cds/gettingstarted/firstworkflow/
Documentation: https://ovh.github.io/cds/docs/tutorials/init_workflow_with_cdsctl/

`,
OptionalArgs: []cli.Arg{
Expand Down
13 changes: 4 additions & 9 deletions contrib/README.md
Expand Up @@ -4,8 +4,7 @@ Here you'll find extensions ready to use with [CDS](https://github.com/ovh/cds).

CDS support several kind of extensions:

- Actions
- Plugins
- Actions & Plugins
- worker-models
- workflow-templates
- µServices
Expand All @@ -14,19 +13,15 @@ See [CDS documentation](https://github.com/ovh/cds) for more details.

## Actions

See [User Actions Documentation](https://ovh.github.io/cds/workflows/pipelines/actions/user/)

## Plugins

See [Plugins Documentation](https://ovh.github.io/cds/workflows/pipelines/actions/plugins/)
See [User Actions Documentation](https://ovh.github.io/cds/docs/actions)

## Worker Models

See [Worker Models Documentation](https://ovh.github.io/cds/workflows/pipelines/requirements/worker-model/)
See [Worker Models Documentation](https://ovh.github.io/cds/docs/concepts/requirement/worker-model/)

## Workflow Templates

See [Workflow Templates Documentation](https://ovh.github.io/cds/workflows/template/)
See [Workflow Templates Documentation](https://ovh.github.io/cds/docs/concepts/template/)

## µServices

Expand Down
2 changes: 1 addition & 1 deletion contrib/actions/README.md
@@ -1,3 +1,3 @@
## How to import action

Documentation: https://ovh.github.io/cds/cli/cdsctl/action/import/
Documentation: https://ovh.github.io/cds/docs/components/cdsctl/action/import/
2 changes: 1 addition & 1 deletion contrib/helm/cds/README.md
Expand Up @@ -173,7 +173,7 @@ After registration on UI, keep the password displayed, we will use it in next st

The first user created on CDS is a CDS Administrator.

In order to have all that you need to run your first job you need to add a first [worker model](https://ovh.github.io/cds/workflows/pipelines/requirements/worker-model/). It's the perfect use case to use the [CDS Command Line](https://ovh.github.io/cds/cli/cdsctl/) named `cdsctl`.
In order to have all that you need to run your first job you need to add a first [worker model](https://ovh.github.io/cds/docs/concepts/worker-model/). It's the perfect use case to use the [CDS Command Line](https://ovh.github.io/cds/docs/components/cdsctl/) named `cdsctl`.

+ Dowload cdsctl

Expand Down
18 changes: 9 additions & 9 deletions contrib/integrations/kubernetes/plugin-kubernetes/Makefile
Expand Up @@ -5,9 +5,9 @@ GITHASH := $(if ${GIT_HASH},${GIT_HASH},`git log -1 --format="%H"`)
BUILDTIME := `date "+%m/%d/%y-%H:%M:%S"`

TARGET_DIR = ./dist
TARGET_NAME = kubernetes
TARGET_NAME = plugin-kubernetes-deployment

PLUGIN_MANIFEST=`echo plugin.yml`
PLUGIN_MANIFEST=`echo $(TARGET_NAME).yml`
export PLUGIN_MANIFEST

define PLUGIN_MANIFEST_BINARY
Expand Down Expand Up @@ -37,29 +37,29 @@ clean:
@rm -rf $(TARGET_DIR)

build: $(TARGET_DIR)
@cp plugin.yml $(TARGET_DIR)/plugin.yml
@cp $(TARGET_NAME).yml $(TARGET_DIR)/$(TARGET_NAME).yml
@for GOOS in $(TARGET_OS); do \
for GOARCH in $(TARGET_ARCH); do \
EXTENSION=""; \
if test "$$GOOS" = "windows" ; then EXTENSION=".exe"; fi; \
echo Compiling $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION $(VERSION); \
FILENAME=$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \
GOOS=$$GOOS GOARCH=$$GOARCH $(GO_BUILD) $(TARGET_LDFLAGS) -o $(TARGET_DIR)/$$FILENAME; \
echo "$$PLUGIN_MANIFEST_BINARY" > $(TARGET_DIR)/plugin-$$GOOS-$$GOARCH.yml; \
sed -i "" "s/%os%/$$GOOS/" $(TARGET_DIR)/plugin-$$GOOS-$$GOARCH.yml; \
sed -i "" "s/%arch%/$$GOARCH/" $(TARGET_DIR)/plugin-$$GOOS-$$GOARCH.yml; \
sed -i "" "s/%filename%/$$FILENAME/" $(TARGET_DIR)/plugin-$$GOOS-$$GOARCH.yml; \
echo "$$PLUGIN_MANIFEST_BINARY" > $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml; \
sed -i "" "s/%os%/$$GOOS/" $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml; \
sed -i "" "s/%arch%/$$GOARCH/" $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml; \
sed -i "" "s/%filename%/$$FILENAME/" $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml; \
done; \
done

publish:
@echo "Updating plugin..."
cdsctl admin plugins import $(TARGET_DIR)/plugin.yml
cdsctl admin plugins import $(TARGET_DIR)/$(TARGET_NAME).yml
@for GOOS in $(TARGET_OS); do \
for GOARCH in $(TARGET_ARCH); do \
EXTENSION=""; \
if test "$$GOOS" = "windows" ; then EXTENSION=".exe"; fi; \
echo "Updating plugin binary $(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION"; \
cdsctl admin plugins binary-add plugin-kubernetes-deployment $(TARGET_DIR)/plugin-$$GOOS-$$GOARCH.yml $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \
cdsctl admin plugins binary-add $(TARGET_NAME) $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH.yml $(TARGET_DIR)/$(TARGET_NAME)-$$GOOS-$$GOARCH$$EXTENSION; \
done; \
done
3 changes: 1 addition & 2 deletions contrib/worker-models/README.md
Expand Up @@ -2,7 +2,7 @@ This directory contains some examples of worker models.

# What's a worker model?

See https://ovh.github.io/cds/workflows/pipelines/requirements/worker-model/
See https://ovh.github.io/cds/docs/concepts/worker-model/

# How to import a worker model?

Expand All @@ -14,4 +14,3 @@ cdsctl worker model import ./go-official-1.11.4-stretch.yml
cdsctl worker model import https://raw.githubusercontent.com/ovh/cds/master/contrib/worker-models/go-official-1.11.4-stretch.yml

```

2 changes: 1 addition & 1 deletion contrib/workflow-templates/README.md
Expand Up @@ -2,5 +2,5 @@ This directory contains some examples of workflow templates.

# What's a workflow template?

See https://ovh.github.io/cds/workflows/template/
See https://ovh.github.io/cds/docs/concepts/template/

Expand Up @@ -6,7 +6,7 @@ The Service Link prerequisite allow you to use any Docker image as a dependency

This is pretty useful if you want to make some tests with a real database, or put your builded application as a job prerequisite for doing some tests.

Doc: https://ovh.github.io/cds/workflows/pipelines/requirements/service/example-pg/
Doc: https://ovh.github.io/cds/docs/tutorials/service-requirement-pg/


# How to import it on your CDS Instance
Expand All @@ -15,7 +15,7 @@ This template is linked to group: `shared.infra`

If you want to import it, you have to be CDS Administrator on your CDS Instance.

This template uses a pre-requisite binary `apt-get`, you need a [worker model](https://ovh.github.io/cds/workflows/pipelines/requirements/worker-model/) with this capability on you CDS Instance.
This template uses a pre-requisite binary `apt-get`, you need a [worker model](https://ovh.github.io/cds/docs/concepts/worker-model/) with this capability on you CDS Instance.

``` bash
# import from github
Expand Down
Expand Up @@ -6,7 +6,7 @@ description: |

This is pretty useful if you want to make some tests with a real database, or put your builded application as a job prerequisite for doing some tests.

Doc: https://ovh.github.io/cds/workflows/pipelines/requirements/service/example-pg/
Doc: https://ovh.github.io/cds/docs/tutorials/service-requirement-pg/
workflow: workflow.yml
pipelines:
- 1.pipeline.yml
11 changes: 0 additions & 11 deletions docs/.editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions docs/.gitignore
@@ -1,2 +1,4 @@
public
.DS_Store
resources

2 changes: 1 addition & 1 deletion docs/archetypes/default.md
@@ -1,5 +1,5 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---
Expand Down