This public repository is read-only and no longer maintained. For the latest sample code repositories, visit the SAP Samples organization.
This repo contains the documentation and support content for the Concur API developer audience. This includes both internal and external developers.
The Concur Developer Website found within the /src
folder is organized into these areas:
_data Sidebars for navigation and various other YML files for the site.
_includes Base HTML for the site combined with Markdown at build time.
_layouts Specific HTML for the various types of resources, referenced with Jekyll front matter, combined with Markdown at build time.
_plugins Various Jekyll plugins used at build time.
_sass CSS styling for the site.
api-explorer OpenAPI documentation (aka 'Swagger') for some of the API endpoints.
api-guides Partner enablement resources showing how to combine various APIs for end-to-end solutions.
api-reference Specific API endpoint documentation.
assets Various site wide images.
manage-apps SAP Concur App Center partner marketing materials.
swagger-ui Supporting files for /api-explorer
tools-support Support resources for developers including release notes.
If you are an existing Concur partner and require support assistance, please open a partner support case here.
Within CircleCI:
- Environment is created.
- Source code for the site is cloned from GitHub.
- Installs the packages needed to build the site, primarily the Jekyll package -- see https://github.com/jekyll/jekyll. and Slate package --see https://github.com/slatedocs/slate
- Builds the entire site according to .circle/_config.yml file, as well as the 'config.yml' file for Jekyll at the root of this directory. This is mostly converting Markdown to HTML using Jekyll.
- Archives the site.
If the site build is successful, within CircleCI:
- Environment is created.
- Workspace is created.
- Entire site is deployed to a Github Pages branch, from which the site is then rendered.
-
Jekyll: https://jekyllrb.com/docs/ (For main site)
-
Slate: https://github.com/slatedocs/slate (For API Exploerer and API Reference new UIs)
-
Clone the repository to your machine:
git clone https://github.com/sap-staging/developer.concur.com.git
or using Github Desktop (Green Code tab above > Open With Github Desktop) -
Install the VS Code Go Live Extension:
- Click on the 6th extension from the top left list of icons
- Enter Live Server in the search bar
- Click Install
- More info on this extension here : https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
-
Change directories to the static file for API Reference located at:
sap-staging/developer.concur.com/src/Slate-API-Explorer-Reference/slate/build/api-reference.html
or to the static file for API Explorer located atsap-staging/developer.concur.com/src/Slate-API-Explorer-Reference/slate/build/index.html
and make sure the file is open in your VS Code Editor. -
Click the Go Live button at the bottom right of the VS Code window.
-
VS Code will open a new window rendering the site (typically on localhost:5500)
Note: This will allow you to preview the site only, but not to view updated changes you've made to API Explorer or API Reference files
To view the changes you've made to API Reference files, you will need to run Middleman on your VS Code Terminal or your CLI by entering the following commands:
1. `bundle install` (this only needs to be done one time)
2. `bundle exec middleman server` (each time) to render your changes on `localhost:4567`
You may also run the following commands:
1. `bundle install` (this only needs to be done one time)
2. `bundle exec middleman build` (each time)
This will generate a fresh set of static files containing your updated Markdown changes.
From there you can simply click on the Go Live button in VS Code to view your updated changes.
Note: Updates to API Explorer files will follow their normal process as before, by updating the Swagger files in the src
folder as mentioned in the steps below.
- Clone the repository to your machine:
git clone https://github.com/sap-staging/developer.concur.com.git
- Using the editor of your choice, make changes to any files under the
src
folder. i.e.sap-staging/developer.concur.com/src/api-explorer/v3-0/<filename>
- Change directories in your CLI to the
developer.concur.com
folder:cd sap-staging/developer.concur.com
- Run the following commands: 1.
bundle install
(this only needs to be done one time) 2.bundle exec jekyll serve
(each time) - Site can be viewed at
localhost:4000
-
Using the editor of your choice, make changes to any file under the
includes
folder located atsap-staging/developer.concur.com/src/Slate-API-Explorer-Reference/slate/includes/<filename>
Note: All API Reference files are the files within the 'includes' folder that do not have a Swagger.json.md extension
-
Change directories to the 'slate' folder in the Slate portion of this repository:
cd developer.concur.com/src/Slate-API-Explorer-Reference/slate/
-
Run the following commands: 1.
bundle install
(this only needs to be done one time) 2.bundle exec middleman server
(each time) -
Changes can be viewed at
localhost:4567