chore: reorganize docs apps (#7228)
* reorganize docs apps * add README * fix directory * add condition for old docs
This commit is contained in:
1 parent
224ebb2154
commit
4fe28f5a95
6187 files changed
+601447
-598226
No files matched your search
+10
-3
@@ -3,9 +3,16 @@
|
||||
list=""
|
||||
app="www/"
|
||||
path="../apps/$1/$2"
|
||||
exception="$path/$3"
|
||||
exceptions=("${@:3}")
|
||||
exceptionsCommand=""
|
||||
|
||||
for index in ${!exceptions[@]}
|
||||
do
|
||||
exceptionsCommand+="-not -path $path/${exceptions[$index]} "
|
||||
done
|
||||
|
||||
# get directories in content other than reference
|
||||
for i in `find $path -type d -maxdepth 1 -not -path $exception -not -path $path`
|
||||
for i in `find $path -type d -maxdepth 1 -not -path $path $exceptionsCommand`
|
||||
do
|
||||
if [ ${#list} -gt 0 ]; then
|
||||
list+=','
|
||||
@@ -13,7 +20,7 @@ do
|
||||
list+="\"$app${i#../}\""
|
||||
done
|
||||
#get files in content (not nested)
|
||||
for i in `find $path -type f -maxdepth 1 -not -path $exception`
|
||||
for i in `find $path -type f -maxdepth 1 $exceptionsCommand`
|
||||
do
|
||||
if [ ${#list} -gt 0 ]; then
|
||||
list+=','
|
||||
|
||||
Reference in new issue
Block a user