website: Flesh out docs split.
website: Copy files during build. website: Allow for mixed env builds. website: Reduce build size. website: Expose build. website: Add build memory debugging. WIP: Disable broken links check to compare memory usage. website: Update deps. website: Clean up API paths. website: Flesh out 3.8 fixes. Format. website: Update ignore paths. Website: Clean up integrations build. website: Fix paths. website: Optimize remark. website: Update deps. website: Format. website: Remove linking. website: Fix paths. wip: Attempt API only build. Prep. Migrate render to runtime. Tidy sidebar. Clean up templates. docs: Move directory. WIP docs: Flesh out split. website: Fix issue where routes have collisions.
This commit is contained in:
21
docs/scripts/docsmg/mcomplete.bash
Executable file
21
docs/scripts/docsmg/mcomplete.bash
Executable file
@ -0,0 +1,21 @@
|
||||
_completions () {
|
||||
if [[ -z "${MIGRATE_PATH}" ]];
|
||||
then MIGRATE_PATH="./";
|
||||
else MIGRATE_PATH="${MIGRATE_PATH}"; fi
|
||||
|
||||
if [[ -z "${TMP_STRUCTURE_PATH}" ]];
|
||||
then TMP_STRUCTURE_PATH="./tmp/";
|
||||
else TMP_STRUCTURE_PATH="${TMP_STRUCTURE_PATH}"; fi
|
||||
|
||||
if [[ $1 = $3 ]];
|
||||
then LSPATH="$MIGRATE_PATH";
|
||||
else LSPATH="$TMP_STRUCTURE_PATH"; fi
|
||||
|
||||
for i in $(compgen -f -- "$LSPATH$2" | cut -d "/" -f 2-); do
|
||||
if [[ -d "$LSPATH$i" ]];
|
||||
then COMPREPLY+=("$i/");
|
||||
else COMPREPLY+=("$i"); fi
|
||||
done
|
||||
}
|
||||
|
||||
complete -o nospace -o filenames -F _completions map
|
||||
Reference in New Issue
Block a user