Jelajahi Sumber

refactor: update remaining Academic refs

George Cushen 4 tahun lalu
induk
melakukan
c67339ac16
39 mengubah file dengan 44 tambahan dan 45 penghapusan
  1. 0 3
      .gitignore
  2. 2 2
      scripts/gen_demo_resources.sh
  3. 1 1
      scripts/list_language_packs.py
  4. 2 2
      scripts/sync_i18n.py
  5. 4 2
      scripts/view_demo.sh
  6. 1 1
      wowchemy/archetypes/authors/_index.md
  7. 1 1
      wowchemy/archetypes/default.md
  8. 1 1
      wowchemy/archetypes/docs.md
  9. 2 2
      wowchemy/archetypes/home.md
  10. 1 1
      wowchemy/archetypes/post/index.md
  11. 1 1
      wowchemy/archetypes/project/index.md
  12. 1 1
      wowchemy/archetypes/publication/index.md
  13. 1 1
      wowchemy/archetypes/slides/index.md
  14. 1 1
      wowchemy/archetypes/talk/index.md
  15. 2 2
      wowchemy/assets/js/algolia-search.js
  16. 2 2
      wowchemy/assets/js/wowchemy-search.js
  17. 2 2
      wowchemy/assets/js/wowchemy.js
  18. 1 1
      wowchemy/assets/scss/main.scss
  19. 0 0
      wowchemy/assets/scss/wowchemy/_card.scss
  20. 0 0
      wowchemy/assets/scss/wowchemy/_content.scss
  21. 0 0
      wowchemy/assets/scss/wowchemy/_dark.scss
  22. 0 0
      wowchemy/assets/scss/wowchemy/_docs.scss
  23. 0 0
      wowchemy/assets/scss/wowchemy/_footer.scss
  24. 0 0
      wowchemy/assets/scss/wowchemy/_icons.scss
  25. 0 0
      wowchemy/assets/scss/wowchemy/_integrations.scss
  26. 0 0
      wowchemy/assets/scss/wowchemy/_listings.scss
  27. 0 0
      wowchemy/assets/scss/wowchemy/_nav.scss
  28. 0 0
      wowchemy/assets/scss/wowchemy/_root.scss
  29. 0 0
      wowchemy/assets/scss/wowchemy/_rtl.scss
  30. 0 0
      wowchemy/assets/scss/wowchemy/_search.scss
  31. 0 0
      wowchemy/assets/scss/wowchemy/_widgets.scss
  32. 3 3
      wowchemy/assets/scss/wowchemy/wowchemy.scss
  33. 1 1
      wowchemy/data/page_sharer.toml
  34. 1 1
      wowchemy/layouts/_default/rss.xml
  35. 3 3
      wowchemy/layouts/index.html
  36. 1 1
      wowchemy/layouts/partials/docs_sidebar.html
  37. 5 5
      wowchemy/layouts/partials/site_js.html
  38. 3 3
      wowchemy/layouts/partials/widget_page.html
  39. 1 1
      wowchemy/layouts/partials/widgets/about.html

+ 0 - 3
.gitignore

@@ -2,9 +2,6 @@
 .idea/
 .vscode/
 
-# Hugo
-exampleSite/public/
-
 # Jupyter
 .ipynb_checkpoints/
 

+ 2 - 2
scripts/gen_demo_resources.sh

@@ -1,5 +1,5 @@
 #!/usr/bin/env zsh
 
 # Generate preprocessed resources for demo site whilst also removing disused resources.
-# Run this script from the root Academic dir.
-HUGO_THEME=academic hugo --source exampleSite --themesDir ../../ --gc
+# Run this script from the root Wowchemy dir.
+HUGO_THEME=wowchemy-hugo-modules hugo --source exampleSite --themesDir ../../ --gc

+ 1 - 1
scripts/list_language_packs.py

@@ -2,7 +2,7 @@
 
 # List Available Language Packs
 # Used for updating the Languages page of the documentation.
-# https://sourcethemes.com/academic/
+# https://wowchemy.com
 #
 # Prerequisites: pip3 install PyYAML
 

+ 2 - 2
scripts/sync_i18n.py

@@ -1,8 +1,8 @@
 #!/usr/bin/env python3
 
 # Sync Language Packs
-# Script to synchronize each language pack's items against Academic's master pack (English).
-# https://sourcethemes.com/academic/
+# Script to synchronize each language pack's items against Wowchemy's master pack (English).
+# https://wowchemy.com
 #
 # Prerequisites: pip3 install PyYAML
 #

+ 4 - 2
scripts/view_demo.sh

@@ -1,9 +1,11 @@
 #!/usr/bin/env zsh
 
 # View the demo site on any local devices by binding the local IP on port 1315.
-# Run this script from the root Academic dir.
-HUGO_THEME=academic hugo \
+# Run this script from the root Wowchemy dir.
+HUGO_THEME=wowchemy-hugo-modules hugo \
 --source exampleSite --themesDir ../../ \
 --bind=0.0.0.0 -p 1315 --baseURL=http://0.0.0.0:1315 \
 --i18n-warnings --minify -e "development" \
 server
+
+#HUGO_THEME=wowchemy-hugo hugo convert toYAML --unsafe --themesDir ../../

+ 1 - 1
wowchemy/archetypes/authors/_index.md

@@ -35,7 +35,7 @@ education:
     year: 2012
 
 # Social/Academic Networking
-# For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
+# For available icons, see: https://wowchemy.com/docs/page-builder/#icons
 #   For an email link, use "fas" icon pack, "envelope" icon, and a link in the
 #   form "mailto:your-email@example.com" or "#contact" for contact widget.
 social:

+ 1 - 1
wowchemy/archetypes/default.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 subtitle: ""

+ 1 - 1
wowchemy/archetypes/docs.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 linktitle: "{{ replace .Name "-" " " | title }}"

+ 2 - 2
wowchemy/archetypes/home.md

@@ -1,6 +1,6 @@
 +++
 # A section created with the Blank widget.
-widget = "blank"  # See https://sourcethemes.com/academic/docs/page-builder/
+widget = "blank"  # See https://wowchemy.com/docs/page-builder/
 headless = true  # This file represents a page section.
 active = true  # Activate this widget? true/false
 weight = 1  # Order that this section will appear.
@@ -45,4 +45,4 @@ subtitle = ""
  css_class = ""
 +++
 
-[**Add some elements here**](https://sourcethemes.com/academic/docs/writing-markdown-latex/)
+[**Add some elements here**](https://wowchemy.com/docs/writing-markdown-latex/)

+ 1 - 1
wowchemy/archetypes/post/index.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 subtitle: ""

+ 1 - 1
wowchemy/archetypes/project/index.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 summary: ""

+ 1 - 1
wowchemy/archetypes/publication/index.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 authors: []

+ 1 - 1
wowchemy/archetypes/slides/index.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 summary: ""

+ 1 - 1
wowchemy/archetypes/talk/index.md

@@ -1,5 +1,5 @@
 ---
-# Documentation: https://sourcethemes.com/academic/docs/managing-content/
+# Documentation: https://wowchemy.com/docs/managing-content/
 
 title: "{{ replace .Name "-" " " | title }}"
 event:

+ 2 - 2
wowchemy/assets/js/algolia-search.js

@@ -1,6 +1,6 @@
 /*************************************************
- *  Academic
- *  https://github.com/gcushen/hugo-academic
+ *  Wowchemy
+ *  https://github.com/wowchemy/wowchemy-hugo-modules
  *
  *  Algolia based search algorithm.
  **************************************************/

+ 2 - 2
wowchemy/assets/js/academic-search.js → wowchemy/assets/js/wowchemy-search.js

@@ -1,6 +1,6 @@
 /*************************************************
- *  Academic
- *  https://github.com/gcushen/hugo-academic
+ *  Wowchemy
+ *  https://github.com/wowchemy/wowchemy-hugo-modules
  *
  *  In-built Fuse based search algorithm.
  **************************************************/

+ 2 - 2
wowchemy/assets/js/academic.js → wowchemy/assets/js/wowchemy.js

@@ -1,6 +1,6 @@
 /*************************************************
- *  Academic
- *  https://github.com/gcushen/hugo-academic
+ *  Wowchemy
+ *  https://github.com/wowchemy/wowchemy-hugo-modules
  *
  *  Core JS functions and initialization.
  **************************************************/

+ 1 - 1
wowchemy/assets/scss/main.scss

@@ -45,6 +45,6 @@ $sta-dark-home-section-even: {{ $scr.Get "dark_home_section_even" }};
 
 @import "bootstrap_variables";
 @import "_vendor/bootstrap/bootstrap";
-@import "academic/academic";
+@import "wowchemy/wowchemy";
 @import "template";
 @import "custom";

+ 0 - 0
wowchemy/assets/scss/academic/_card.scss → wowchemy/assets/scss/wowchemy/_card.scss


+ 0 - 0
wowchemy/assets/scss/academic/_content.scss → wowchemy/assets/scss/wowchemy/_content.scss


+ 0 - 0
wowchemy/assets/scss/academic/_dark.scss → wowchemy/assets/scss/wowchemy/_dark.scss


+ 0 - 0
wowchemy/assets/scss/academic/_docs.scss → wowchemy/assets/scss/wowchemy/_docs.scss


+ 0 - 0
wowchemy/assets/scss/academic/_footer.scss → wowchemy/assets/scss/wowchemy/_footer.scss


+ 0 - 0
wowchemy/assets/scss/academic/_icons.scss → wowchemy/assets/scss/wowchemy/_icons.scss


+ 0 - 0
wowchemy/assets/scss/academic/_integrations.scss → wowchemy/assets/scss/wowchemy/_integrations.scss


+ 0 - 0
wowchemy/assets/scss/academic/_listings.scss → wowchemy/assets/scss/wowchemy/_listings.scss


+ 0 - 0
wowchemy/assets/scss/academic/_nav.scss → wowchemy/assets/scss/wowchemy/_nav.scss


+ 0 - 0
wowchemy/assets/scss/academic/_root.scss → wowchemy/assets/scss/wowchemy/_root.scss


+ 0 - 0
wowchemy/assets/scss/academic/_rtl.scss → wowchemy/assets/scss/wowchemy/_rtl.scss


+ 0 - 0
wowchemy/assets/scss/academic/_search.scss → wowchemy/assets/scss/wowchemy/_search.scss


+ 0 - 0
wowchemy/assets/scss/academic/_widgets.scss → wowchemy/assets/scss/wowchemy/_widgets.scss


+ 3 - 3
wowchemy/assets/scss/academic/academic.scss → wowchemy/assets/scss/wowchemy/wowchemy.scss

@@ -1,8 +1,8 @@
 /*************************************************
- *  Academic: The Website Builder for Hugo
+ *  Wowchemy: The Website Builder for Hugo
  *  Designed by @GeorgeCushen
- *  https://sourcethemes.com/academic/
- *  License: https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md
+ *  https://wowchemy.com/
+ *  License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/master/LICENSE.md
  **************************************************/
 
 @import "root";

+ 1 - 1
wowchemy/data/page_sharer.toml

@@ -1,5 +1,5 @@
 # Page Sharer
-# Documentation: https://sourcethemes.com/academic/docs/customization/#page-sharer
+# Documentation: https://wowchemy.com/docs/customization/#page-sharer
 
 [[buttons]]
   id = "twitter"

+ 1 - 1
wowchemy/layouts/_default/rss.xml

@@ -15,7 +15,7 @@
       {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
     {{ end -}}
     <description>{{ .Title | default site.Title }}</description>
-    <generator>Source Themes Academic (https://sourcethemes.com/academic/)</generator>
+    <generator>Wowchemy (https://wowchemy.com)</generator>
     {{- with site.LanguageCode }}<language>{{.}}</language>{{end -}}
     {{- with site.Copyright }}<copyright>{{ replace (replace . "{year}" now.Year) "&copy;" "©" | plainify }}</copyright>{{end -}}
     {{- if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end -}}

+ 3 - 3
wowchemy/layouts/index.html

@@ -1,8 +1,8 @@
 {{- define "main" -}}
 
-{{/* Check that user fully installed Academic. */}}
+{{/* Check that user fully installed Wowchemy. */}}
 {{ if not (isset site.Params "theme") }}
-  {{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/docs/install/" }}
+  {{ errorf "Please complete the installation of Wowchemy by following the steps at https://wowchemy.com/docs/install/" }}
 {{ end }}
 
 {{/* Deprecation warnings */}}
@@ -10,7 +10,7 @@
 {{/* v4.5: Address changed from string to map. */}}
 {{ if isset site.Params "address" }}
 {{ if eq (reflect.IsMap site.Params.address) false }}
-  {{ errorf "Please upgrade the `address` field in `config/_default/params.toml`. Refer to all of the Breaking Changes in v4.5 at https://sourcethemes.com/academic/updates/v4.5.0/" }}
+  {{ errorf "Please upgrade the `address` field in `config/_default/params.toml`. Refer to all of the Breaking Changes in v4.5 at https://wowchemy.com/updates/v4.5.0/" }}
 {{ end }}
 {{ end }}
 

+ 1 - 1
wowchemy/layouts/partials/docs_sidebar.html

@@ -12,7 +12,7 @@
 {{ end }}
 {{ $menu_name = .Params.menu_name | default $menu_name | default (path.Base (path.Split .File).Dir) }}
 {{ if not (index site.Menus $menu_name) }}
-  {{ errorf "Please define menu items named `menu: %s:` in your %s front matter or define `[[menu.%s]]` in `config/default/menus.toml`. See https://sourcethemes.com/academic/docs/managing-content/#menus" $menu_name .Path $menu_name }}
+  {{ errorf "Please define menu items named `menu: %s:` in your %s front matter or define `[[menu.%s]]` in `config/default/menus.toml`. See https://wowchemy.com/docs/managing-content/#menus" $menu_name .Path $menu_name }}
 {{ end }}
 
 <form class="docs-search d-flex align-items-center">

+ 5 - 5
wowchemy/layouts/partials/site_js.html

@@ -146,11 +146,11 @@
     <script id="dsq-count-scr" src="https://{{site.Params.comments.disqus.shortname}}.disqus.com/count.js" async></script>
     {{ end }}
 
-    {{ $js_comment := printf "/* Source Themes Academic v%s | https://sourcethemes.com/academic/ */\n" site.Data.academic.version }}
+    {{ $js_comment := printf "/* Wowchemy v%s | https://wowchemy.com/ */\n" site.Data.wowchemy.version }}
     {{ $js_bundle_head := $js_comment | resources.FromString "js/bundle-head.js" }}
     {{ $js_linebreak := "\n" | resources.FromString "js/linebreak.js" }}{{/* Fix no line break after Bootstrap JS causing error. */}}
-    {{ $js_academic := resources.Get "js/academic.js" }}
-    {{ $js_academic_search := resources.Get "js/academic-search.js" }}
+    {{ $js_academic := resources.Get "js/wowchemy.js" }}
+    {{ $js_academic_search := resources.Get "js/wowchemy-search.js" }}
     {{ $js_algolia_search := resources.Get "js/algolia-search.js" }}
     {{ $js_bootstrap := resources.Get "js/_vendor/bootstrap.min.js" }}
     {{ $js_bundle := slice $js_bootstrap $js_linebreak $js_academic }}
@@ -162,8 +162,8 @@
     {{ range site.Params.plugins_js }}
       {{ $js_bundle = $js_bundle | append (resources.Get (printf "js/%s.js" .)) }}
     {{ end }}
-    {{ $js_bundle := $js_bundle | resources.Concat "js/academic-bundle-pre.js" | minify }}
-    {{ $js_bundle := slice $js_bundle_head $js_bundle | resources.Concat "js/academic.min.js" | fingerprint "md5" }}
+    {{ $js_bundle := $js_bundle | resources.Concat "js/wowchemy-bundle-pre.js" | minify }}
+    {{ $js_bundle := slice $js_bundle_head $js_bundle | resources.Concat "js/wowchemy.min.js" | fingerprint "md5" }}
     <script src="{{ $js_bundle.RelPermalink }}"></script>
 
     {{ partial "custom_js" . }}

+ 3 - 3
wowchemy/layouts/partials/widget_page.html

@@ -10,7 +10,7 @@
   {{/* Check homepage exists */}}
   {{ if not $headless_bundle }}
     {{ errorf "Homepage not found at %s!" $page }}
-    {{ errorf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://sourcethemes.com/academic/docs/ and the example homepage at https://github.com/gcushen/hugo-academic/tree/master/exampleSite/content/home/index.md ." }}
+    {{ errorf "Add the `/home/index.md` homepage file to each language's content folder. For example, your site should have a `content/home/` folder containing `index.md` and your homepage sections, or for multi-language sites, `content/en/home/` and `content/zh/home/` etc. Refer to the 'Build Your Homepage' and 'Language' documentation at https://wowchemy.com/docs/ and the example homepage at https://github.com/wowchemy/starter-academic/tree/master/exampleSite/content/home/index.md ." }}
   {{ end }}
 {{ else }}
   {{ $page = .File.Path }}
@@ -18,8 +18,8 @@
   {{/* Check widget page exists. */}}
   {{ if not $headless_bundle }}
     {{ errorf "Widget Page not found at %s!" $page }}
-    {{ errorf "View the Widget Page documentation at https://sourcethemes.com/academic/docs/managing-content/#create-a-widget-page ." }}
-    {{ errorf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/gcushen/hugo-academic/issues/1595#issuecomment-605514973 ." }}
+    {{ errorf "View the Widget Page documentation at https://wowchemy.com/docs/managing-content/#create-a-widget-page ." }}
+    {{ errorf "If the Hugo version is between 0.65 and 0.68, it may be a confirmed Hugo bug that is expected to be fixed in Hugo v0.69: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1595#issuecomment-605514973 ." }}
   {{ end }}
 {{ end }}
 

+ 1 - 1
wowchemy/layouts/partials/widgets/about.html

@@ -11,7 +11,7 @@
 {{ $person_page_path := (printf "/authors/%s" $author) }}
 {{ $person_page := site.GetPage $person_page_path }}
 {{ if not $person_page }}
-  {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://sourcethemes.com/academic/docs/page-builder/#about " $person_page_path }}
+  {{ errorf "Could not find an author page at `%s`. Please check the value of `author` in your About widget and create an associated author page if one does not already exist. See https://wowchemy.com/docs/page-builder/#about " $person_page_path }}
 {{end}}
 {{ $person := $person_page.Params }}
 {{ $avatar := ($person_page.Resources.ByType "image").GetMatch "*avatar*" }}