Skip to content

Commit bf93210

Browse files
committed
update pandoc script
1 parent 768d28e commit bf93210

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

.github/workflows/doc.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,24 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: create file list
15-
id: files_list
16-
run: |
17-
# this will also include all README.md files in order of folder name
18-
echo "files=$(printf '"%s" ' */*.md)" > $GITHUB_OUTPUT
19-
2014
- name: run pandoc
2115
run: |
22-
pandoc -s ${{ steps.files_list.outputs.files }} -f markdown -o "output/cosmos-db-openai-python-dev-guide.docx"
16+
pandoc -f markdown -o "cosmos-db-openai-python-dev-guide.docx" -s \
17+
"./00_Introduction/README.md" \
18+
"./01_Azure_Overview/README.md" \
19+
"./02_Overview_Cosmos_DB/README.md" \
20+
"./03_Overview_Azure_OpenAI/README.md" \
21+
"./04_Overview_AI_Concepts/README.md" \
22+
"./05_Explore_OpenAI_models/README.md" \
23+
"./06_Provision_Azure_Resources/README.md" \
24+
"./07_Create_First_Cosmos_DB_Project/README.md" \
25+
"./08_Load_Data/README.md" \
26+
"./09_Vector_Search_Cosmos_DB/README.md" \
27+
"./10_LangChain/README.md" \
28+
"./11_Backend_API/README.md" \
29+
"./12_User_Interface/README.md"
2330
2431
- uses: actions/upload-artifact@v3
2532
with:
26-
name: output
27-
path: output
33+
name: Word Doc
34+
path: "cosmos-db-openai-python-dev-guide.docx"

run-pandoc.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
#MARKDOWNFILES="$(printf '"./%s" ' */*.md)"
3+
#pandoc -f markdown -o "output/cosmos-db-openai-python-dev-guide.docx" -s $MARKDOWNFILES
4+
5+
pandoc -f markdown -o "cosmos-db-openai-python-dev-guide.docx" -s \
6+
"./00_Introduction/README.md" \
7+
"./01_Azure_Overview/README.md" \
8+
"./02_Overview_Cosmos_DB/README.md" \
9+
"./03_Overview_Azure_OpenAI/README.md" \
10+
"./04_Overview_AI_Concepts/README.md" \
11+
"./05_Explore_OpenAI_models/README.md" \
12+
"./06_Provision_Azure_Resources/README.md" \
13+
"./07_Create_First_Cosmos_DB_Project/README.md" \
14+
"./08_Load_Data/README.md" \
15+
"./09_Vector_Search_Cosmos_DB/README.md" \
16+
"./10_LangChain/README.md" \
17+
"./11_Backend_API/README.md" \
18+
"./12_User_Interface/README.md"

0 commit comments

Comments
 (0)