Skip to content

Commit

Permalink
Add CG NG flows and en for CG
Browse files Browse the repository at this point in the history
  • Loading branch information
casww committed May 5, 2022
1 parent c9c8c73 commit c872783
Show file tree
Hide file tree
Showing 4 changed files with 1,949 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# This workflow will use OxygenScript to build features.

name: Awesome OxygenScript for DITA doc building
name: Awesome OxygenScript for DITA doc building (NG SDK)

on:
push:
branches: [ master, 'release/**' ]
# branches: [ master, 'release/**' ]
branches: [ 'release/rtc-ng/3.8.200' ]

pull_request:
branches: [ master, 'release/**' ]
branches: [ 'release/rtc-ng/3.8.200' ]
# branches: [ master, 'release/**' ]

jobs:
build:
Expand Down
82 changes: 82 additions & 0 deletions .github/workflows/AwesomeOxygenScriptforDITADocBuilding_CG.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# This workflow will use OxygenScript to build features.

name: Awesome OxygenScript for DITA doc building (CG SDK)

on:
push:
# branches: [ master, 'release/**' ]
branches: [ 'release/rtc/3.6.2-all' ]

pull_request:
branches: [ 'release/rtc/3.6.2-all' ]
# branches: [ master, 'release/**' ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: montudor/action-zip@v1
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8.0.332+9'
distribution: 'temurin'
- name: DITA doc building
run: |
cd scripts/oxygen/scripts
./transform.sh -i ../../../dita/RTC/RTC_API_CS.ditamap -sn "DITA Map HTML5 - CG C Sharp" -s ../../../.github/workflows/exported_scenarios.scenarios -v
./transform.sh -i ../../../dita/RTC/RTC_API_Flutter.ditamap -sn "DITA Map HTML5 - CG Flutter" -s ../../../.github/workflows/exported_scenarios.scenarios -v
./transform.sh -i ../../../en-US/dita/RTC/RTC_API_CS.ditamap -sn "DITA Map HTML5 - CG C Sharp" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
./transform.sh -i ../../../en-US/dita/RTC/RTC_API_Flutter.ditamap -sn "DITA Map HTML5 - CG Flutter" -s ../../../.github/workflows/exported_scenarios_en.scenarios -v
- name: zip files
run: |
cd dita/RTC-NG/out
zip -qq -r flutter_cg_cn_doc.zip "flutter_cg"
zip -qq -r cs_cg_cn_doc.zip "csharp_cg"
zip -qq -r flutter_cg_en_doc.zip "flutter_cg_en"
zip -qq -r cs_cg_en_doc.zip "csharp_cg_en"
- name: Upload Flutter CG CN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/flutter_cg_cn_doc.zip
asset_name: flutter_cg_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."

- name: Upload CSharp CG CN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cs_cg_cn_doc.zip
asset_name: cs_cg_cn_doc.zip
tag: main
overwrite: true
body: "DITA docs."

- name: Upload Flutter CG EN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/flutter_cg_en_doc.zip
asset_name: flutter_cg_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."

- name: Upload CSharp CG EN doc to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dita/RTC-NG/out/cs_cg_en_doc.zip
asset_name: cs_cg_en_doc.zip
tag: main
overwrite: true
body: "DITA docs."
264 changes: 264 additions & 0 deletions .github/workflows/exported_scenarios.scenarios
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,270 @@
<String-array/>
</field>
</ditaScenario>
<ditaScenario>
<field name="useXEP">
<Boolean>false</Boolean>
</field>
<field name="useAntennaHouse">
<Boolean>false</Boolean>
</field>
<field name="baseDir">
<String>${cfd}</String>
</field>
<field name="outputDir">
<String>${cfd}/out/csharp_cg</String>
</field>
<field name="tempDir">
<String>${cfd}/temp/html5</String>
</field>
<field name="transtype">
<String>html5</String>
</field>
<field name="filters">
<ditavalFilters>
<field name="useDitavalFilePath">
<Boolean>true</Boolean>
</field>
<field name="useAppliedConditionSet">
<Boolean>false</Boolean>
</field>
<field name="appliedConditionSet">
<null/>
</field>
<field name="ditavalFilePath">
<String>${cfd}/config/filter-cs-rtc.ditaval</String>
</field>
<field name="simpleFiltersList">
<list/>
</field>
</ditavalFilters>
</field>
<field name="addOxygenJars">
<Boolean>true</Boolean>
</field>
<field name="skinCssFile">
<null/>
</field>
<field name="lastCustomSkinCssPath">
<null/>
</field>
<field name="webhelpResponsiveTemplate">
<null/>
</field>
<field name="publishingTemplateDataPO">
<null/>
</field>
<field name="oxygenFeedbackPO">
<null/>
</field>
<field name="additionalAntArgs">
<String></String>
</field>
<field name="buildTarget">
<String></String>
</field>
<field name="buildFilePath">
<String></String>
</field>
<field name="ditaParams">
<list>
<ditaParameter>
<field name="name">
<String>args.rellinks</String>
</field>
<field name="description">
<null/>
</field>
<field name="value">
<String>all</String>
</field>
<field name="defaultValue">
<null/>
</field>
<field name="type">
<Integer>4</Integer>
</field>
<field name="possibleValues">
<String-array>
<String>none</String>
<String>all</String>
<String>noparent</String>
<String>nofamily</String>
<null/>
</String-array>
</field>
<field name="possibleValuesDescriptions">
<String-array>
<String>No links are included.</String>
<String>All links are included.</String>
<String>Parent links are not included.</String>
<String>Parent, child, next, and previous links are not included.</String>
</String-array>
</field>
</ditaParameter>
<ditaParameter>
<field name="name">
<String>default.language</String>
</field>
<field name="description">
<null/>
</field>
<field name="value">
<String>zh-CN</String>
</field>
<field name="defaultValue">
<null/>
</field>
<field name="type">
<Integer>0</Integer>
</field>
<field name="possibleValues">
<null/>
</field>
<field name="possibleValuesDescriptions">
<null/>
</field>
</ditaParameter>
<ditaParameter>
<field name="name">
<String>nav-toc</String>
</field>
<field name="description">
<null/>
</field>
<field name="value">
<String>full</String>
</field>
<field name="defaultValue">
<String>none</String>
</field>
<field name="type">
<Integer>4</Integer>
</field>
<field name="possibleValues">
<String-array>
<String>none</String>
<String>partial</String>
<String>full</String>
<null/>
</String-array>
</field>
<field name="possibleValuesDescriptions">
<String-array>
<String>No TOC</String>
<String>Partial TOC that shows the current topic</String>
<String>Full TOC</String>
</String-array>
</field>
</ditaParameter>
</list>
</field>
<field name="jvmArgs">
<String></String>
</field>
<field name="useCustomJavaHome">
<Boolean>false</Boolean>
</field>
<field name="customJavaHomeDir">
<String></String>
</field>
<field name="useCustomANTHome">
<Boolean>false</Boolean>
</field>
<field name="customANTHomeDir">
<String></String>
</field>
<field name="workingDir">
<null/>
</field>
<field name="showConsoleAlways">
<Boolean>true</Boolean>
</field>
<field name="advancedOptionsMap">
<null/>
</field>
<field name="name">
<String>DITA Map HTML5 - CG CSharp</String>
</field>
<field name="baseURL">
<null/>
</field>
<field name="footerURL">
<null/>
</field>
<field name="fOPMethod">
<null/>
</field>
<field name="fOProcessorName">
<null/>
</field>
<field name="headerURL">
<null/>
</field>
<field name="inputXSLURL">
<null/>
</field>
<field name="inputXMLURL">
<null/>
</field>
<field name="defaultScenario">
<Boolean>false</Boolean>
</field>
<field name="isFOPPerforming">
<Boolean>false</Boolean>
</field>
<field name="type">
<String>DITAMAP</String>
</field>
<field name="saveAs">
<Boolean>true</Boolean>
</field>
<field name="openInBrowser">
<Boolean>true</Boolean>
</field>
<field name="outputFile">
<null/>
</field>
<field name="outputResource">
<null/>
</field>
<field name="openOtherLocationInBrowser">
<Boolean>false</Boolean>
</field>
<field name="locationToOpenInBrowserURL">
<String></String>
</field>
<field name="openInEditor">
<Boolean>false</Boolean>
</field>
<field name="showInHTMLPane">
<Boolean>false</Boolean>
</field>
<field name="showInXMLPane">
<Boolean>false</Boolean>
</field>
<field name="showInSVGPane">
<Boolean>false</Boolean>
</field>
<field name="showInResultSetPane">
<Boolean>false</Boolean>
</field>
<field name="useXSLTInput">
<Boolean>false</Boolean>
</field>
<field name="xsltParams">
<list/>
</field>
<field name="cascadingStylesheets">
<String-array/>
</field>
<field name="xslTransformer">
<String>DITA-OT</String>
</field>
<field name="extensionURLs">
<String-array/>
</field>
</ditaScenario>
<ditaScenario>
<field name="useXEP">
<Boolean>false</Boolean>
Expand Down
Loading

0 comments on commit c872783

Please sign in to comment.