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

Update base README, point to website #4488

Merged
merged 44 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2989e8b
Fixes #4335: Create Stratos static web site with better documentation
vvaradhan Jul 13, 2020
45cd11c
1) Re-organize some more existing doc files.
vvaradhan Jul 13, 2020
d26b948
Landing Page WIP
nwmac Jul 20, 2020
7181236
Documentation tweaks
nwmac Jul 20, 2020
5b394a0
Use better action names
nwmac Jul 20, 2020
bcb5529
More visual improvements to landing page
nwmac Jul 20, 2020
5741bf9
More doc and landing page improvements
nwmac Jul 22, 2020
7383f69
Remove publish workflow for now
nwmac Jul 22, 2020
208baa0
Typo fix
nwmac Jul 22, 2020
fff9924
Moer documentation improvements
nwmac Jul 22, 2020
2bbb535
Remove extra title from helm doc
nwmac Jul 22, 2020
388245c
Fix script when used from npm
nwmac Jul 22, 2020
796729c
Improve layout on mobile devices
nwmac Jul 22, 2020
17aaf09
More documentation improvements
nwmac Jul 22, 2020
3f093d4
Fix typo
nwmac Jul 22, 2020
fd17825
Merge downstream (#4441)
richard-cox Jul 20, 2020
dd34fc5
Show all favorites for an endpoint favorite if there is only one (#4440)
nwmac Jul 20, 2020
244f9fe
Merge downstream - JSON Viewer with dark mode & Header Fixes (#4444)
richard-cox Jul 20, 2020
9c94d60
Fix issues with tests not running if build upload fails (#4453)
nwmac Jul 21, 2020
56f0389
Improve autoscaler e2e logging (#4456)
richard-cox Jul 21, 2020
a4e14c1
Fix check-e2e-pr.sh for pr's from other repos (#4459)
richard-cox Jul 21, 2020
560b524
Convert Client Secret Input Fields to `password` (#4455)
richard-cox Jul 21, 2020
17f4f11
Insecure tlsv10 and tlsv11 ciphers in Stratos UI, bsc#1173295 (#411) …
richard-cox Jul 21, 2020
de9fb7a
[Security] Bump codecov from 3.7.0 to 3.7.1 (#4457)
dependabot-preview[bot] Jul 21, 2020
85290ad
Bump lodash from 4.17.15 to 4.17.19 (#4452)
dependabot[bot] Jul 21, 2020
e3ae282
Website update: Wed 22 Jul 2020 21:55:00 BST
nwmac Jul 22, 2020
99bd6ad
Website update: Wed 22 Jul 2020 21:56:45 BST
nwmac Jul 22, 2020
71bf0ad
Website update: Wed 22 Jul 2020 21:58:22 BST
nwmac Jul 22, 2020
43ffaf6
Remove dist
nwmac Jul 22, 2020
fa55ff2
FIx deploy script to remove old files
nwmac Jul 22, 2020
7147c81
Moer tidy ups
nwmac Jul 23, 2020
c3c9c73
Add CNAME file when publishing
nwmac Jul 23, 2020
67b08dc
Add talks doc
nwmac Jul 23, 2020
f659099
* Fix broken links due to reorganization of documents
vvaradhan Jul 24, 2020
b9bdeda
* Fix Getting Started broken link in page footer
vvaradhan Jul 24, 2020
fbd53ae
Only publish if there are website changes
nwmac Jul 24, 2020
ca1e052
Merge remote-tracking branch 'origin/master' into website
nwmac Jul 24, 2020
a47e5dd
Remove old doc
nwmac Jul 24, 2020
e4785a6
Publish website on merge
nwmac Jul 24, 2020
8b9dc27
Apply new theming process to acme example
richard-cox Jul 28, 2020
092bf5f
First pass at customization docs, most of themeing done
richard-cox Jul 28, 2020
993a137
Final pass at customization docs
richard-cox Jul 29, 2020
65f2127
Update base README, point to website
richard-cox Jul 31, 2020
a41bcd2
Merge remote-tracking branch 'origin/master' into root-readme-docs
richard-cox Aug 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moer tidy ups
  • Loading branch information
nwmac committed Jul 23, 2020
commit 7147c81a1577f1e5a61e94753426b83a731d781a
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Contributing to Stratos UI
# Contributing to Stratos

Stratos UI is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved.
Stratos is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved.

There are two main forms of contribution: reporting issues and performing code changes.

## Reporting Issues

If you find a problem with Stratos UI, report it using [GitHub issues](https://github.com/cloudfoundry/stratos/issues/new).
If you find a problem with Stratos, report it using [GitHub issues](https://github.com/cloudfoundry/stratos/issues/new).

Before reporting a new issue, please take a moment to check whether it has already been reported
[here](https://github.com/cloudfoundry/stratos/issues). If this is the case, please:
Expand All @@ -29,7 +29,7 @@ This information will help to determine the cause and prepare a fix as fast as p
## Code Changes

Code contributions come in various forms and sizes, from simple bug fixes to implementation
of new features. Before making any non-trivial change, get in touch with the Stratos UI developers first. This can prevent wasted effort later.
of new features. Before making any non-trivial change, get in touch with the Stratos developers first. This can prevent wasted effort later.

To send your code change, use GitHub pull requests. The workflow is as follows:

Expand All @@ -43,7 +43,7 @@ To send your code change, use GitHub pull requests. The workflow is as follows:

1. Publish the branch and create a pull request.

1. Stratos UI developers will review your change and possibly point out issues.
1. Stratos developers will review your change and possibly point out issues.
Adapt the code under their guidance until all issues are resolved.

1. Finally, the pull request will get merged or rejected.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion docs/index.html

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This command starts a local development server and open up a browser window. Mos
### Build

```
$ npm build
$ ./deploy.sh -b
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.
Expand All @@ -33,5 +33,8 @@ This command generates static content into the `build` directory and can be serv
We use GitHub pages - this command is a convenient way to build the website and push to the `gh-pages` branch.

```
$ GIT_USER=<Your GitHub username> USE_SSH=true npm deploy
$ ./deploy.sh
```


> Note: The website is deployed to the GitHub Repository `cf-stratos/wesbite` which hosts https://stratos.app
38 changes: 36 additions & 2 deletions website/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,44 @@ EOF

# Concatentate the helm chart readme file
tail -n +2 ${DIR}/../deploy/kubernetes/console/README.md >> ./docs/deploy/kubernetes/install.md
npm run build

# License file

cat << EOF > ./docs/license.md
---
id: license
title: License
sidebar_label: License
---

Stratos is licensed under the Apache 2.0 Software License, shown below:

\`\`\`
EOF

cat ${DIR}/../LICENSE >> ./docs/license.md
echo "\`\`\`" >> ./docs/license.md

# Contributing

cat << EOF > ./docs/developer/contributing.md
---
title: Contributing
sidebar_label: Contributing
---

EOF

tail -n +2 ${DIR}/../CONTRIBUTING.md >> ./docs/developer/contributing.md

# Copy and generate files only
if [ "$ARG" == "-g" ]; then
exit 0
fi

npm run build

# Build only
# Generate and build only
if [ "$ARG" == "-b" ]; then
exit 0
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Connecting Prometheus-boshrelease to Stratos
---
title: Connecting Prometheus-boshrelease to Stratos
sidebar_label: Connecting Prometheus-boshrelease
---

Stratos can show some metrics stored in Prometheus.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/advanced/invite-user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In the above example the client id is `stratos-invite` and client secret is `pas

Alternatively, you can use an existing UAA Client, if one is already available with the appropriate scopes.

> Note: You will need the Client ID and Client Secret used above when enabling User Invite support in the Stratos UI
> Note: You will need the Client ID and Client Secret used above when enabling User Invite support in Stratos

## Configuring SMTP Server details and (optionally) modifying Email Templates

Expand Down
162 changes: 162 additions & 0 deletions website/docs/developer/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
---
title: Contributing
sidebar_label: Contributing
---


Stratos is an open project and welcomes contributions. These guidelines are provided to help you understand how the project works and to make contributing smooth and fun for everybody involved.

There are two main forms of contribution: reporting issues and performing code changes.

## Reporting Issues

If you find a problem with Stratos, report it using [GitHub issues](https://github.com/cloudfoundry/stratos/issues/new).

Before reporting a new issue, please take a moment to check whether it has already been reported
[here](https://github.com/cloudfoundry/stratos/issues). If this is the case, please:

- Read all the comments to confirm that it's the same issue you're having.
- Refrain from adding "same thing here" or "+1" comments. Just hit the
"subscribe" button to get notifications for this issue.
- Add a comment only if you can provide helpful information that has not been
provided in the discussion yet.

When creating a new issue, make sure you include:

1. As much detail as possible about your setup/environment
1. Steps to reproduce the issue/bug
1. What you expected to happen
1. What happened instead

This information will help to determine the cause and prepare a fix as fast as possible.

## Code Changes

Code contributions come in various forms and sizes, from simple bug fixes to implementation
of new features. Before making any non-trivial change, get in touch with the Stratos developers first. This can prevent wasted effort later.

To send your code change, use GitHub pull requests. The workflow is as follows:

1. Fork the project.

1. Create a branch based on `master`.

1. Implement your change, including tests and documentation.

1. Run tests to make sure your change didn't break anything.

1. Publish the branch and create a pull request.

1. Stratos developers will review your change and possibly point out issues.
Adapt the code under their guidance until all issues are resolved.

1. Finally, the pull request will get merged or rejected.

See also [GitHub's guide on contributing](https://help.github.com/articles/fork-a-repo).

If you want to do multiple unrelated changes, use separate branches and pull
requests.

### Commits

Each commit in the pull request should do only one thing, which is clearly
described by its commit message. Especially avoid mixing formatting changes and
functional changes into one commit. When writing commit messages, adhere to
[widely used
conventions](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).

When the commit fixes a bug, put a message in the body of the commit message
pointing to the number of the issue (e.g. "Fixes #123").

### Pull requests and branches

All work happens in branches. The master branch is only used as the target for pull
requests.

During code review you often need to update pull requests. Usually you do that
by pushing additional commits.

In some cases where the commit history of a pull request gets too cumbersome to
review or you need bigger changes in the way you approach a problem which needs
changing of commits you already did it's more practical to create a new pull
request. This new pull request often will contain squashed versions of the
previous pull request. Use that to clarify the changes contained in a pull
request and to make review easier.

When you replace a pull request by another one, add a message in the
description of the new pull request on GitHub referencing the pull request it
replaces (e.g. "Supersedes #123").

Never force push commits. This changes history, can lead to data loss, and
causes trouble for people who have checked out the changes which are overwritten
by a force push. Don't waste time with thinking about if the force push in this
one particular case would be ok, just don't do it.

### Check for assigned people

We use Github Issues for submitting known issues (e.g. bugs, features,
etc.). Some issues will have someone assigned, meaning that there's already
someone that takes responsibility for fixing the issue. This is not done to
discourage contributions, rather to not step in the work that has already been
done by the assignee. If you want to work on a known issue with someone already
assigned to it, please contact the assignee first (e.g. by
mentioning the assignee in a new comment on the specific issue). This way you
can contribute with ideas, or even with code if the assignee decides that you
can step in.

If you plan to work on a non assigned issue, please add a comment on the issue
to prevent duplicated work.

### Sign your work

The sign-off is a simple line at the end of the explanation for the change. Your
signature certifies that you wrote the change or otherwise have the right to pass
it on as an open-source change. The rules are pretty simple: if you can certify
the below (from [developercertificate.org](http://developercertificate.org/)):

```
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
```

Then you just add a line to each git commit message:

Signed-off-by: Joe Smith <joe.smith@email.com>

Use your real name (sorry, no pseudonyms or anonymous contributions.)

If you set your `user.name` and `user.email` git configs, you can sign your
commit automatically with `git commit -s`.
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,8 @@ title: Customizing Stratos
sidebar_label: Customizing Stratos
---

Stratos provides a mechanism for customization - the following customizations are currently supported:

- Changing the theme colors
- Changing certain image assets (favorite icon, login background and logo)
- Overriding styles
- Adding new functionality
- Changing the initial loading indicator

# Migrating to Stratos V4 Customization
In V4 there are breaking customization changes. These changes allow a much improved approach to extensions by opening the door to npm style plugins.
To aid in migrating we've provided these instructions.

1) Before updating to the latest code...
1) Run `npm run customize-reset` to remove all previously created sym links.
2) Read through the customization documentation below to get a better understanding of the new process.
1) Update your codebase with the desired v4 code.
1) Run `npm install` (only required first time, this will ensure you have the required version of Angular).
1) Change directory to `./build/tools/v4-migration` and run the migration script `./migrate.sh`.
- This will copy your customizations from `custom-src` to a new Angular package `src/frontend/packages/custom_extensions`.
1) Check that the new package exports your custom module and if applicable your custom-routing module.
- The migrate script should do this in `src/frontend/packages/custom_extensions/src/public-api.ts`.
1) Check that your ts config file defines the public api file.
- `src/tsconfig.json` file's `compilerOptions/paths` section should contain something like `"@custom/extensions": ["frontend/packages/custom_extensions/src/public-api.ts"]`.
1) Check that your new package's package.json defines your custom module and if application custom-routing module.
- See `src/frontend/packages/suse_extensions/package.json` file's `stratos` section.
- Note your `routingModule` entry label should not have a preceding `_`.
1) Build Stratos in your usual way, for instance `npm run build`.
- It could be that this fails due to TypeScript import issues, if so go through these and fix.
- During build time the custom packages will be discovered and output, see section starting `Building with these extensions`. These should contain the modules your require.
1) Run Stratos your usual way. Ensure you can navigate to all your custom parts.
1) Once you are happy everything works as intended remove the old `./custom-src` directory and commit you changes.

> This document is out of date and is in the process of being refreshed.

## Approach

Expand Down Expand Up @@ -150,7 +121,7 @@ When you perform an `npm install` or explicitly run `npm run customize`, the cus

Within the `custom-src/frontend/app/custom` folder you must create a module in the file `custom.module.ts` named `CustomModule` - this will be imported into the Stratos application and is the mechanism by which you can add custom code to the front-end.

We currently expose the following extension points in the Stratos UI:
We currently expose the following extension points in Stratos:

- Changing the component to use for the login screen
- Adding new items to the side navigation menu
Expand Down
11 changes: 10 additions & 1 deletion website/docs/extensions/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@
title: Theming Stratos
sidebar_label: Theming Stratos
---
This document is in progress
This document is in progress

Stratos provides a mechanism for customizing the theme, including:

- Changing the theme colors
- Changing image assets (favorite icon, login background and logo)
- Overriding styles
- Changing the initial loading indicator

The easiest way to create a theme is to create a folder in the `src/frontend/packages` folder.
30 changes: 30 additions & 0 deletions website/docs/extensions/v4-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Migrating to V4
sidebar_label: Migrating to V4
---

In version 4 of Stratos there are breaking customization changes from previous versions.

These changes allow a much improved approach to extensions by opening the door to npm style plugins.

To aid in migrating we've provided these instructions.

1. Before updating to the latest code...
- Run `npm run customize-reset` to remove all previously created sym links.
- Read through the customization documentation below to get a better understanding of the new process.
1. Update your codebase with the desired v4 code.
1. Run `npm install` (only required first time, this will ensure you have the required version of Angular).
1. Change directory to `./build/tools/v4-migration` and run the migration script `./migrate.sh`.
- This will copy your customizations from `custom-src` to a new Angular package `src/frontend/packages/custom_extensions`.
1. Check that the new package exports your custom module and if applicable your custom-routing module.
- The migrate script should do this in `src/frontend/packages/custom_extensions/src/public-api.ts`.
1. Check that your ts config file defines the public api file.
- `src/tsconfig.json` file's `compilerOptions/paths` section should contain something like `"@custom/extensions": ["frontend/packages/custom_extensions/src/public-api.ts"]`.
1. Check that your new package's package.json defines your custom module and if application custom-routing module.
- See `src/frontend/packages/suse_extensions/package.json` file's `stratos` section.
- Note your `routingModule` entry label should not have a preceding `_`.
1. Build Stratos in your usual way, for instance `npm run build`.
- It could be that this fails due to TypeScript import issues, if so go through these and fix.
- During build time the custom packages will be discovered and output, see section starting `Building with these extensions`. These should contain the modules your require.
1. Run Stratos your usual way. Ensure you can navigate to all your custom parts.
1. Once you are happy everything works as intended remove the old `./custom-src` directory and commit you changes.
Loading