Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ce089
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Walmes Marques Zeviani
ce089
Commits
e824a687
Commit
e824a687
authored
6 years ago
by
Walmes Marques Zeviani
Browse files
Options
Downloads
Patches
Plain Diff
Comenta pedaços do script shell.
parent
4ff6d6b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+16
-15
16 additions, 15 deletions
build.sh
with
16 additions
and
15 deletions
build.sh
+
16
−
15
View file @
e824a687
# Removes the _site/.
rm
-r
_site/
#
rm -r _site/
# Rscript -e "library(rmarkdown); clean_site()"
# The root file.
...
...
@@ -7,20 +7,20 @@ echo $PWD
THEROOT
=
$PWD
cd
$THEROOT
# List of Rmd files.
RMDFILES
=
$(
find
.
-name
\*
.Rmd
-print
)
echo
$RMDFILES
# Runs rmarkdown::render() in each Rmd file down in the tree.
for
RMD
in
$RMDFILES
;
do
DIRNAME
=
`
dirname
"
$RMD
"
`
RMDNAME
=
`
basename
"
$RMD
"
`
cd
$DIRNAME
if
[[
"
$DIRNAME
"
==
"./slides"
||
"
$DIRNAME
"
==
"./tutoriais"
]]
;
then
Rscript
-e
"library(rmarkdown); render(
\"
$RMDNAME
\"
)"
fi
cd
$THEROOT
done
#
# List of Rmd files.
#
RMDFILES=$(find . -name \*.Rmd -print)
#
echo $RMDFILES
#
#
# Runs rmarkdown::render() in each Rmd file down in the tree.
#
for RMD in $RMDFILES; do
#
DIRNAME=`dirname "$RMD"`
#
RMDNAME=`basename "$RMD"`
#
cd $DIRNAME
#
if [[ "$DIRNAME" == "./slides" || "$DIRNAME" == "./tutoriais" ]]; then
#
Rscript -e "library(rmarkdown); render(\"$RMDNAME\")"
#
fi
#
cd $THEROOT
#
done
# Renders the site.
Rscript
-e
"library(rmarkdown); render_site()"
...
...
@@ -29,6 +29,7 @@ firefox _site/index.html
# Remove os Rmd.
rm
-r
--verbose
_site/slides/
*
.Rmd
rm
-r
--verbose
_site/slides/
*
.Rnw
rm
-r
--verbose
_site/tutoriais/
*
.Rmd
# Visualiza a árvore de arquivos/diretórios.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment