Newer
Older
.=*#%%#*= -*#%%#*=. =+- ++. .+ .+#%%#+. :++ -+-
:@@=:..:+@@. #@#:..:+@@. *@* @@: -@#@+:..-@@- -@@ *@*
+@* %@= .@@. %@= *@* @@: -@@. *@* -@@ *@*
+@* %@= %@* *%= *@* @@: -@@ *@* -@@ *@*
+@* %@= +@@= *@* @@: -@@ *@* -@@ *@*
+@* %@= .+@@+. *@* @@: -@@ *@* -@@ *@*
+@* %@= .+@@+. *@* @@: -@@ *@* .@@=. :@@=
+@* %@= == +@@: *@* @@: -@@ *@* .+%@@@@%*-
+@* %@= .@@. +@# *@* .@@: -@@ *@* @@-
=@% .@@- @@- #@# +@# :#@@: -@@ *@* @@-
=%@%##%@%= :#@%##%@@* *@@##@%=:@: :@@ *@+ %@-
.:.. ..:. ...
`);
let pagefindExclude = ".pages__section, .block-pages, "
pagefindExclude += ".posts__section, .block-posts, .post-sidebar, "
pagefindExclude += ".organizations__section, .block-partners, .block-organizations, "
pagefindExclude += ".persons__section, .block-organization_chart, .block-people, .block-persons, "
pagefindExclude += ".programs__section, .block-programs, "
pagefindExclude += ".events__section, .block-agenda, "
pagefindExclude += ".diplomas__taxonomy, .block-diplomas"
function execute(string) {
console.log("OSUNY runs " + string);
shell.exec(string);
}
execute("hugo");
execute("npx pagefind --site 'public' --output-subdir '../static/pagefind' --exclude-selectors '" + pagefindExclude + "'");
execute("hugo server");
execute("hugo");
execute("npm_config_yes=true npx pagefind --site 'public' --exclude-selectors '" + pagefindExclude + "'");
execute("git pull --recurse-submodules --depth 1");
execute("git submodule update --remote");
execute("git submodule add https://github.com/noesya/osuny-example");
execute("hugo server --config osuny-example/config/example/config.yaml");
execute("yarn setup-example > /dev/null || yarn update");
execute("yarn server-example");
execute("cd themes/osuny-hugo-theme-aaa");
execute("git checkout main");
execute("git pull");
execute("cd ../..");
execute("yarn upgrade");