mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
ee846db056
[Preview link](https://marion-docs-restructure.hasura-docs-mono.pages.dev/docs/latest/index/) This PR is a complete restructure of documentation including the following: - Merge [core](https://hasura.io/docs/latest/graphql/core/index/) and [cloud](https://hasura.io/docs/latest/graphql/cloud/index/) docs - Integrate [enterprise](https://docs.ee.hasura.io/) docs - Flip [database section](https://hasura.io/docs/latest/graphql/core/databases/index/) - Much more @robertjdominguez @seanparkross please add improvements and link to the sections that you've updated, so that it's easy to find for reviewers. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4882 Co-authored-by: surendran82 <26085612+surendran82@users.noreply.github.com> Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com> Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com> Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com> Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com> GitOrigin-RevId: 897191003a5e20dcc525b15e571725a34dc7d76e
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Run this from root of repo - graphql-engine-mono
|
|
# ./docs/scripts/pandoc-auto-transform.sh "docs/docs"
|
|
|
|
# Make sure globstar is enabled
|
|
# shopt -s globstar
|
|
# cd docs
|
|
# for f in **/*.rst; do # Whitespace-safe and recursive
|
|
# # echo "../$1/${f%.*}"
|
|
# mkdir -pv -- "../$1/${f%/*}" && touch -- "../$1/${f%}.txt";
|
|
# pandoc "$f" -f rst -t gfm -s -o "../$1/${f%}.txt";
|
|
# done
|
|
# cd ..
|
|
|
|
|
|
# wc -l graphql/**/* > files.txt
|
|
# tree -f
|
|
|
|
# run on only one file
|
|
# ./docs/scripts/pandoc-auto-transform.sh "graphql/core/actions/create.rst"
|
|
# pandoc "docs-old/$1" -f rst -t gfm -s -o "docs/docs/${1%}.txt";
|
|
|
|
# run on list of files
|
|
# Ref: https://stackoverflow.com/a/424142/10208226 to get list of changed files in a commit
|
|
# git diff-tree --no-commit-id --name-only -r 90c8f75
|
|
# ./docs/scripts/pandoc-auto-transform.sh
|
|
# files=( "graphql/core/databases/ms-sql-server/index.rst" "graphql/core/mutations/ms-sql-server/index.rst" "graphql/core/mutations/ms-sql-server/insert.rst" "graphql/core/mutations/ms-sql-server/upsert.rst" "graphql/core/mutations/postgres/upsert.rst" )
|
|
# for f in "${files[@]}"; do
|
|
# mkdir -pv -- "docs/${f%/*}" && touch -- "docs/docs/${f%}.txt";
|
|
# pandoc "docs-old/$f" -f rst -t gfm -s -o "docs/docs/${f%}.txt";
|
|
# done
|
|
|
|
# mkdir -pv -- "$1/${f%/*}" && touch -- "$1/${f%}.txt";
|
|
# pandoc "$f" -f rst -t gfm -s -o "$1/${f%}.txt"; |