diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..20e130e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "docs/themes/hugo-theme-learn"] + path = docs/themes/hugo-theme-learn + url = https://github.com/matcornic/hugo-theme-learn.git diff --git a/README.md b/README.md index 0c40792..e2e6379 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,11 @@ Success : (Expr (Term (Term (Num "10")) "*" (Num "(" (Expr (Expr (Term (Num "20" $ echo "10 * (20 + 30)" | cargo run -p example_prebuild Success : (Expr (Term (Term (Num "10")) "*" (Num "(" (Expr (Expr (Term (Num "20"))) "+" (Term (Num "30"))) ")"))) ``` + +## Docs + +``` +$ make -C docs run +``` + +⇒ http://localhost:1313 diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..56af776 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,2 @@ +public/ +*.lock diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..827a929 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,19 @@ +FILEPATH = + +# Publish (./docs/public) +publish: + hugo + +# Run (http://localhost:1313) +run: + hugo server + +# New Chapter +# - make chapter FILEPATH="chapter1/_index.md" +chapter: + hugo new --kind chapter $(FILEPATH) + +# New Article +# - make article FILEPATH="chapter1/article.md" +article: + hugo new $(FILEPATH) diff --git a/docs/archetypes/default.md b/docs/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/docs/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/docs/config.toml b/docs/config.toml new file mode 100644 index 0000000..10289d3 --- /dev/null +++ b/docs/config.toml @@ -0,0 +1,28 @@ +title = "Copager Document" +theme = "hugo-theme-learn" +languageCode = "ja-JP" +defaultContentLanguage = "ja" +canonifyurls = true +relativeURLs = true + +[outputs] +home = ["HTML", "JSON"] + +[params] +title = "Copager" +description = "Copager Document" +titleSeparator = "|" +themeVariant = "blue" +disableLandingPageButton = true +disableShortcutsTitle = true + +[Languages] +[Languages.ja] +weight = 1 +languageName = "日本語" + +[[Languages.ja.menu.shortcuts]] +name = " Copager" +identifier = "github-copager" +url = "https://github.com/Tsukuba-Programming-Lab/Copager" +weight = 1 diff --git a/docs/content/_index.md b/docs/content/_index.md new file mode 100644 index 0000000..44e2d30 --- /dev/null +++ b/docs/content/_index.md @@ -0,0 +1,31 @@ +--- +title: "トップページ" +date: 2024-09-02T00:00:00Z +--- + +# Copager Document + +![VERSION-Badge](https://img.shields.io/github/v/release/Tsukuba-Programming-Lab/Copager?style=for-the-badge) + +### 関連リンク + +- [Github - Copager](https://github.com/Tsukuba-Programming-Lab/Copager) + +### ライセンス + +#### Copager + +Copyright 2024 Yuta NAKAGAMI\ +Copyright 2024 Tsukuba-Programming-Lab + +#### lynx + +Copyright (c) 2021 James Panther (https://jamespanther.com) + +#### hugo-theme-learn + +Copyright (c) 2014 Grav\ +Copyright (c) 2016 MATHIEU CORNIC\ +Copyright (c) 2017 Valere JEANTET + +[LICENSE.md](https://github.com/matcornic/hugo-theme-learn/blob/master/LICENSE.md) diff --git a/docs/layouts/partials/logo.html b/docs/layouts/partials/logo.html new file mode 100644 index 0000000..e5082a6 --- /dev/null +++ b/docs/layouts/partials/logo.html @@ -0,0 +1,8 @@ + + + Copager + + diff --git a/docs/themes/hugo-theme-learn b/docs/themes/hugo-theme-learn new file mode 160000 index 0000000..3202533 --- /dev/null +++ b/docs/themes/hugo-theme-learn @@ -0,0 +1 @@ +Subproject commit 3202533a746f91c67de1a8fa373c0328ec1b403d