NodeJs - 10.x.x
- Clone repository https://github.com/SoftwareAG/webmethods-io-flowservice.git
- Open the cloned floweditordeveloperguide and open command line in that folder
- Install yarn globally if not installed using the command
npm i -g yarn
- Run command
yarn
- Run command
yarn start
- Open browser and navigate to http://localhost:8000
-
Find the topic for which content needs to be written
-
Check if the content needs a grouping in the side navigation
- Open the content folder
- Add new folder inside content folder with the topic as the name
- Then create a file with the same name and
.mdx
as extension - Follow the naming convention of words-separated-by-hyphen for file/folder names
Note: If you need grouping inside another category (say A>B), follow the above steps inside the respective folder (say A). Here
.mdx
files are required for both folders.- Open the content folder
- Navigate to the folder/topic inside which the content has to be added
- Create a file with the topic-name and
.mdx
as extension - Follow the naming convention of words-separated-by-hyphen for file names
-
After creating the file, some text content needed to be added to top of the file
-
That text defines the title and description of the page
-
Title provided will be used as the display name in the side navigation
-
Title also acts as a main header in the page
-
To add title and description add
---
twice with a empty line in between -
Add any of the below options in the format
option: value
-
All options must be in its own line
- title - Text used in header and side navigation
- metaTitle - Text used in the title of the page(Browser tab)
webMethods.io | FlowServices
- metaDescription - Description used in meta tag for SEO
- author - Author of the topic
- date - Date of writing the document
Note: Only title is mandatory
- Navigate to the getting started page to see the concepts panel
- New topics has to be added to that panel
- To add a new topic, open the file src/components/mdxComponents/data.json
- Find the title under which the topic needs to be added
- Add a JSON Object
, {}
to the end of the array - Inside object add
"title": "title of the topic",
as key value pair - Add another key value pair
"link":"path/to/the/topic/file/created/without/mdx/extension"
-
Content can be written using markdown format
-
Few HTML Elements are present to
Markdown is a lightweight and easy-to-use syntax for styling all forms of writing. Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like # or *.
Check this link for more info on markdown.
There are certain html/react components which can be used to add functionalities which are not possible with markdown.
Flow service component can be used to create a card which will display flow steps as images and text based comments next to them.
<FlowService title="Slack - Post message to channel" description="The above flow steps are used to find the channel for which the name is testCh and post a message to it" textToCopy={flowJSON} > </FlowService>
- title - string - Title of the flow card
- description - string - Description of the flow card
- textToCopy - json - JSON which will be copied to clipboard
Note: For json inputs
{}
should be used instead of""
Flow Step component should be used only inside the
FlowService
component. It can be used to display a single step of flow service inside the flow card.<FlowStep img="getting-started/simple-flowservice/add-services/image-slice_01.png" comment="Get Channels list from slack" />
- img - string - Path to the image.
- comment - string - Comment for the step
Note: Path should not contain space in it. Use hyphen for space in file/folder names.
-
There are two types of assets which can be used inside the markdown file which are image and json
- Images can be used with components
- To add images navigate to content/assets folder
- Create folder structure similar to where the
.mdx
file is present - Create one more folder with the name of the
.mdx
file - Keep all the images in this folder
- Currently, images can be used with
FlowStep
component FlowStep
component takes image path as string to img property- Path will start from inside the assets folder
- So for an image content/assets/feature/topic/topic-1.png , the path will be feature/topic/topic-1.png
Note: Image folder/file name cannot contain space. Limit the use of special characters to - for separating words and . for extension
Adding json file is similar to adding images. Please check the Adding images section. Json file can be placed adjacent to images of the topic
- Currently, json can be used with
FlowService
component for copying the flow json FlowService
component takes json as input for textToCopy property- To use json, it needs to be imported to the
.mdx
file - Import statement should be placed immediately next to the metadata of the page
- Import statement should be in the format
import flowJson from '../relative/path/to/json/file''
- So for a json file content/assets/feature/topic/topic.json, the import will
import flowJson from '../assets/feature/topic/topic.json'
- To use the imported json with
FlowService
component it has to be added to textToCopy propertytextToCopy={flowJson}
Note: When passing json to property
{}
must be used instead of""