Skip to content

Commit

Permalink
Enable read-the-docs based user guides (winery#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
miwurster authored May 19, 2020
1 parent ee14eb8 commit aaadb68
Show file tree
Hide file tree
Showing 239 changed files with 2,000 additions and 2,354 deletions.
1 change: 1 addition & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build:
image: latest

python:
version: 3.7
requirements_file: docs/requirements.txt
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
_build
28 changes: 0 additions & 28 deletions docs/DeveloperGuide.html

This file was deleted.

31 changes: 31 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2020 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0

# Minimal makefile for Sphinx documentation

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
23 changes: 23 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (c) 2020 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
~ which is available at https://www.apache.org/licenses/LICENSE-2.0.
~
~ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->


# Eclipse Winery Documentation

## Build

```
pip install -r requirements.txt
make.bat html
```
7 changes: 0 additions & 7 deletions docs/SUPPORT.md

This file was deleted.

28 changes: 0 additions & 28 deletions docs/ToolChain.html

This file was deleted.

28 changes: 0 additions & 28 deletions docs/UserGuide.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ system, this structure is also present in the angular app.
Entry into the angular app is the `WineryRepositoryComponent`. It contains the standard header and the router outlet.
All main routes are configured in the `WineryRepositoryRoutingModule` which is bootstrapped in the `WineryRepositoryModule`.

![Angular Component Diagram](graphics/repositoryUiAngularComponentDiagram.png)
![Angular Component Diagram](figures/repositoryUiAngularComponentDiagram.png)
[source](repositoryUiAngularComponentDiagram.plantuml)

### Main Routes
Expand Down
File renamed without changes.
37 changes: 6 additions & 31 deletions docs/dev/howtos/howto-angular.md → docs/_legacy/angular.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
# Eclipse Winery Angular Apps
# Winery's Angular Apps

TODO: generisch für beide apps

## Prerequisites
1. Install [git](https://git-scm.com)
2. Install and setup [Node.js](https://nodejs.org/en/) and [NPM](https://www.npmjs.com) which ships with Node.js
3. **optional** Install the [Angular-CLI](https://cli.angular.io) globally.

### Backend
## Backend
The frontend assumes that the backend server is running on
- the same host,
- the same protocol,
- the same port
- and is reachable under the context `/winery`.

#### Development
If the frontend runs via npm on the development ports, the backend MUST be running at port `8080`.

An example request to the backend, if it runs locally, looks like this: `http://localhost:8080/winery/servicetemplates`.


### Topologymodeler
During development, the repository UI depends on the development version of the topologymodeler. Therefore,
you need to have both angular apps running with the local development server outlined below.
## Topology Modeler

During development, the repository UI depends on the development version of the topologymodeler.
Therefore, you need to have both angular apps running with the local development server outlined below.

Otherwise, the repository UI assumes that the topologymodeler runs on
- the same host,
Expand Down Expand Up @@ -92,21 +85,3 @@ You can also set up a IntelliJ run configuration as outlined above. Instead of c
## Generate war files
Execute `mvn package`.


## Development Hints
- [Exiting a for-each loop early](https://stackoverflow.com/a/2641374/6592788)


## License

Copyright (c) 2017 Contributors to the Eclipse Foundation

See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.

This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
which is available at https://www.apache.org/licenses/LICENSE-2.0.

SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Working with the Repository

![Repository Interfaces Inheritance](graphics/InheritanceOfInterfacesRelatedToTheRepository.png)
![Repository Interfaces Inheritance](figures/InheritanceOfInterfacesRelatedToTheRepository.png)

The general idea is to seperate the repository and the repository client.
The repository itself is only accessed through the REST resources offered by `org.eclipse.winery.repository.rest`.
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
Empty file added docs/_static/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File system folder structure using type-namespace-id structure

Winery's data is stored in a a file system [ADR-0001](0001-use-filesystem-as-backend).
Winery's data is stored in a a file system [ADR-0001](0001-use-filesystem-as-backend.md).
The contents of the repository should be

- human readable
Expand All @@ -15,7 +15,7 @@ The contents of the repository should be

*Chosen Alternative: Folders subdivided in type-namespace-id*

The final file system layout itself is documented at [RepositoryLayout](../dev/RepositoryLayout).
The final file system layout itself is documented at [RepositoryLayout](../dev/repository-layout.md).

### human readable

Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0003-double-encoded-urls.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
URLs should be human-readable, slashes are not allowed.
Encoded slahes are not enabled as default due to security reasons.

More information about encoding is available at [dev/Encoding.md](dev/Encoding).
More information about encoding is available at [dev/Encoding.md](../dev/encoding.md).

## Considered Alternatives

Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0015-copy-source-to-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ Forces:
* `-` Needs a runtime/compiler
* `-` See [ADR-0014]

[ADR-0014]: (0014-use-eclipse-orion-as-editor.md)
[ADR-0014]: 0014-use-eclipse-orion-as-editor.md
17 changes: 16 additions & 1 deletion docs/adr/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!---~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (c) 2020 Contributors to the Eclipse Foundation
~
~ See the NOTICE file(s) distributed with this work for additional
~ information regarding copyright ownership.
~
~ This program and the accompanying materials are made available under the
~ terms of the Eclipse Public License 2.0 which is available at
~ http://www.eclipse.org/legal/epl-2.0, or the Apache Software License 2.0
~ which is available at https://www.apache.org/licenses/LICENSE-2.0.
~
~ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->


# Architectural Decision Log

This lists the architectural decisions for Eclipse Winery.
Expand Down Expand Up @@ -38,5 +53,5 @@ This lists the architectural decisions for Eclipse Winery.

<!-- adrlogstop -->

[template.md](template.md) contains the template.
The [template.md](template.md) contains the MADR template.
More information on MADR is available at <https://adr.github.io/madr/>.
Loading

0 comments on commit aaadb68

Please sign in to comment.