Skip to content

Commit 328480c

Browse files
retgitsmellistibco
authored andcommitted
Updated docs website (#202)
1 parent 159df81 commit 328480c

File tree

17 files changed

+298
-23
lines changed

17 files changed

+298
-23
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ install:
1616
- go get github.com/spf13/hugo
1717

1818
script:
19-
- cd docs && hugo
20-
- cd ../showcases && hugo
21-
- mv public ../docs/public/showcases
22-
- cd ../docs
23-
- cd public && ls -alh
19+
- chmod +x build-docs.sh
20+
- ./build-docs.sh
2421

2522
deploy:
2623
provider: pages

build-docs.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
echo "Prepare docs..."
4+
echo "Update contributing page"
5+
cp CONTRIBUTING.md docs/content/contributing/contributing.md
6+
sed -i '1d' docs/content/contributing/contributing.md
7+
sed -i '1i ---' docs/content/contributing/contributing.md
8+
sed -i '1i weight: 9010' docs/content/contributing/contributing.md
9+
sed -i '1i title: Contributing to Project Flogo' docs/content/contributing/contributing.md
10+
sed -i '1i ---' docs/content/contributing/contributing.md
11+
12+
echo "Getting the docs for the activities and triggers"
13+
git clone https://github.com/TIBCOSoftware/flogo-contrib
14+
for i in `find flogo-contrib/activity -name \*.md` ; do filename=$(basename $(dirname $i)); cp $i docs/content/development/webui/activities/$filename.md; done;
15+
for i in `find flogo-contrib/trigger -name \*.md` ; do filename=$(basename $(dirname $i)); cp $i docs/content/development/webui/triggers/$filename.md; done;
16+
rm -rf flogo-contrib
17+
18+
echo "Build docs site..."
19+
cd docs && hugo
20+
cd ../showcases && hugo
21+
mv public ../docs/public/showcases
22+
cd ../docs
23+
cd public && ls -alh

docs/content/contributing/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Contribute
33
weight: 9000
44
chapter: true
5+
pre: "<i class=\"fa fa-user-plus\" aria-hidden=\"true\"></i> "
56
---
67

78
# Contribute
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Contributing to Project Flogo
3+
weight: 9010
4+
---
5+
6+
Are you interested in contributing to Project Flogo? If so, this doc was created specifically for you! If you’re not ready to start contributing code, no problem, feel free to check out the [documentation issues](https://github.com/TIBCOSoftware/flogo/labels/kind%2Fdocs) and begin my helping enhance the documentation!
7+
8+
Detailed instructions on contributing to the documentation and sharing your projects via the showcase can be found in our documentation, here:
9+
10+
https://tibcosoftware.github.io/flogo/contributing/
11+
12+
If you’re ready and interested to make code contributions, we’ve tried to make the process as easy as possible. First, an automated contributor license agreement (CLA) has been put in place, after your first pull request, you’ll be prompted to sign the agreement, no hassles, easy and integrated right into GitHub. Also, before you begin, take a look at the general guidelines below for contributing.
13+
14+
## How do I make a contribution?
15+
16+
Never made an open source contribution before? Wondering how contributions work in our project? Here's a quick rundown!
17+
18+
If you have any questions, feel free to post an issue and tag it as a question, email [email protected] or chat with the team and community:
19+
20+
* The [project-flogo/Lobby](https://gitter.im/project-flogo/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link) Gitter channel should be used for general discussions, start here for all things Flogo!
21+
* The [project-flogo/developers](https://gitter.im/project-flogo/developers?utm_source=share-link&utm_medium=link&utm_campaign=share-link) Gitter channel should be used for developer/contributor focused conversations.
22+
23+
* Find an issue that you are interested in addressing or a feature that you would like to add. Look for issues labeled `good first issue`, `kind/help-wanted` if you’re unsure where to begin. Don’t forget to checkout all of the Flogo repositories: [flogo-contrib](https://github.com/TIBCOSoftware/flogo-contrib), [flogo-lib](https://github.com/TIBCOSoftware/flogo-lib), [flogo-cli](https://github.com/TIBCOSoftware/flogo-cli) & [flogo-services](https://github.com/TIBCOSoftware/flogo-services).
24+
* Fork the repository associated with the issue to your local GitHub account. This means that you will have a copy of the repository under github-username/repository-name.
25+
* Clone the repository to your local machine using `git clone https://github.com/github-username/repository-name.git`.
26+
* Create a new branch for your fix using `git checkout -b branch-name-here`.
27+
* Make the appropriate changes for the issue you are trying to address or the feature that you want to add.
28+
* Use `git add insert-paths-of-changed-files-here` to add the file contents of the changed files to the "snapshot" git uses to manage the state of the project, also known as the index.
29+
* Use `git commit -m "Insert a short message of the changes made here"` to store the contents of the index with a descriptive message.
30+
* Push the changes to the remote repository using `git push origin branch-name-here`.
31+
* Submit a pull request to the upstream repository.
32+
* Title the pull request with a short description of the changes made and the issue or bug number associated with your change. For example, you can title an issue like: "Registering mapper functions as outlined in #4352".
33+
* In the description of the pull request, explain the changes that you made, any issues you think exist with the pull request you made, and any questions you have for the maintainers.
34+
* Sign the CLA if you have not yet done so in the past.
35+
* Wait for the pull request to be reviewed by a maintainers.
36+
* Make changes to the pull request if the reviewing maintainer recommends them.
37+
* Congratulations, you’ve contributed to Project Flogo, a celebration is in order!
38+
39+
## Best Practices for Code Contributions
40+
41+
If you're adding a new feature, such as an activity or trigger, please follow the best practices below:
42+
43+
* Provide test cases for your feature
44+
* Package name should match your activity dir. For example, if a new activity is placed in activity/awesomeActivity then the go package name should match.
45+
* Follow Go best practices for package names: https://blog.golang.org/package-names
46+
* Run gofmt to format your code
47+
* Leverage activity trigger metadata (activity/trigger.json)
48+
* Use metadata ‘required’ attribute when the attribute is required
49+
* Supply a default value in metadata not code (use the value attribute)
50+
* Activity Eval() should return `true` only when completed successfully & err should be returned when an error occurs
51+
52+
Refer to the [Flogo Documentation](https://tibcosoftware.github.io/flogo/) for more guidence and help.
53+
54+
Don't forget, if you build an awesome Activity or Trigger you can [share your work via the Flogo Showcase](https://tibcosoftware.github.io/flogo/contributing/) rather than contributing to [flogo-contrib](https://github.com/TIBCOSoftware/flogo-contrib).
File renamed without changes.

docs/content/development/interactive-labs/_index.md

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Web UI
3+
weight: 4500
4+
chapter: true
5+
pre: "<i class=\"fa fa-desktop\" aria-hidden=\"true\"></i> "
6+
---
7+
8+
# Web UI
9+
10+
Building flows using the Web UI is awesome! Check out this section to see all the out of the box activities we have!
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Activities
3+
weight: 4600
4+
chapter: true
5+
pre: "<i class=\"fa fa-desktop\" aria-hidden=\"true\"></i> "
6+
---
7+
8+
# Activities
9+
10+
An activity is the unit of work that can be leveraged within a Flow. Here is the list of the out of the box activities. If it isn't here, check the [showcase](https://tibcosoftware.github.io/flogo/showcases) to see the amazing contributions of our community
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Triggers
3+
weight: 4700
4+
chapter: true
5+
pre: "<i class=\"fa fa-desktop\" aria-hidden=\"true\"></i> "
6+
---
7+
8+
# Triggers
9+
10+
Flogo is an event-driven framework. A trigger is the entrypoint for events. A trigger can be a subscriber on an MQTT topic, Kafka topic, HTTP REST interface or a specific IoT sensor. . Here is the list of the out of the box activities. If it isn't here, check the [showcase](https://tibcosoftware.github.io/flogo/showcases) to see the amazing contributions of our community

docs/content/faas/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: FaaS
33
weight: 8000
44
chapter: true
5+
pre: "<i class=\"fa fa-filter\" aria-hidden=\"true\"></i> "
56
---
67

78
# Flows as Functions for Serverless Platforms

0 commit comments

Comments
 (0)