File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
docs/modules/categories/pages Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 2828 then
2929 mkdir " ${CATEGORIES} /pages/${DATABASE_CATEGORY} "
3030 echo " = ${DATABASE_CATEGORY} \n" > " ${CATEGORIES} /pages/${DATABASE_CATEGORY} /index.adoc"
31- echo " * xref:${DATABASE_CATEGORY} /index.adoc[]" >> " ${CATEGORIES} /pages/index.adoc"
3231 git add " ${CATEGORIES} /pages/${DATABASE_CATEGORY} /index.adoc"
3332 GIT_COMMIT=" true"
3433 fi
3534
35+ # add category to list if not there already
36+ CATEGORY_LISTED=$( grep " * xref:${DATABASE_CATEGORY} /index.adoc" " ${CATEGORIES} /pages/index.adoc" )
37+ if [ -z " ${CATEGORY_LISTED} " ];
38+ then
39+ echo " * xref:${DATABASE_CATEGORY} /index.adoc[]" >> " ${CATEGORIES} /pages/index.adoc"
40+ fi
41+
3642 # create pages
3743 echo " include::features:partial\$ ${PAGE} []" > " ${CATEGORIES} /pages/${DATABASE_CATEGORY} /${PAGE} "
3844
4147
4248 if [ -z " ${CATEGORY_EXISTS} " ];
4349 then
44- echo " ** xref:${DATABASE_CATEGORY} /index.adoc[]" >> " ${CATEGORIES} /nav.adoc"
50+ echo " ** xref:${DATABASE_CATEGORY} /index.adoc[]" >> " ${CATEGORIES} /nav.adoc"
4551 fi
4652 echo " *** xref:${DATABASE_CATEGORY} /${PAGE} []" >> " ${CATEGORIES} /nav.adoc"
4753 done
5258 then
5359 mkdir " ${VERSIONS} /pages/${DATABASE_VERSION} "
5460 echo " = ${DATABASE_VERSION} \n" > " ${VERSIONS} /pages/${DATABASE_VERSION} /index.adoc"
55- echo " * xref:${DATABASE_VERSION} /index.adoc[]" >> " ${VERSIONS} /pages/index.adoc"
5661 git add " ${VERSIONS} /pages/${DATABASE_VERSION} /index.adoc"
5762 GIT_COMMIT=" true"
5863 fi
5964
65+ # add version to list if not there already
66+ VERSION_LISTED=$( grep " * xref:${DATABASE_VERSION} /index.adoc" " ${VERSIONS} /pages/index.adoc" )
67+ if [ -z " ${VERSION_LISTED} " ];
68+ then
69+ echo " * xref:${DATABASE_VERSION} /index.adoc[]" >> " ${VERSIONS} /pages/index.adoc"
70+ fi
71+
6072 # create pages
6173 echo " include::features:partial\$ ${PAGE} []" > " ${VERSIONS} /pages/${DATABASE_VERSION} /${PAGE} "
6274
Original file line number Diff line number Diff line change 11= Categories
22
33* xref:plsql/index.adoc[]
4+ * xref:sql/index.adoc[]
You can’t perform that action at this time.
0 commit comments