Skip to content

Commit

Permalink
Kmesh website init
Browse files Browse the repository at this point in the history
  • Loading branch information
nlgwcy committed Jul 15, 2023
1 parent a4c1003 commit 89165a9
Show file tree
Hide file tree
Showing 411 changed files with 33,439 additions and 0 deletions.
Empty file.
Binary file added assets/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Configuration of Hugo
# Guide: https://sourcethemes.com/academic/docs/get-started/
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
#
# This file is formatted using TOML syntax - learn more at https://learnxinyminutes.com/docs/toml/
# Each configuration section is defined by a name in square brackets (e.g. `[outputs]`).

# Title of your site
title = "Kmesh"

# The URL of your site.
# End your URL with a `/` trailing slash, e.g. `https://example.com/`.
baseurl = "http://kmesh.net/"

# Enter a copyright notice to display in the site footer.
# To display a copyright symbol, type `©`. For current year, type `{year}`.
copyright = "2023 © Kmesh Project Authors. All rights reserved."

############################
## Advanced options below ##
############################

# Name of Academic theme folder in `themes/`.
theme = "academic"

# Get last modified date for content from Git?
enableGitInfo = false

# Default language to use (if you setup multilingual support)
defaultContentLanguage = "en"
hasCJKLanguage = false # Set `true` for Chinese/Japanese/Korean languages.
defaultContentLanguageInSubdir = false
removePathAccents = true # Workaround for https://github.com/gohugoio/hugo/issues/5687

summaryLength = 30 # Listing summary length in words. Also, see `abstract_length` in `params.toml`.
paginate = 10 # Number of items per page in paginated lists.
enableEmoji = true
footnotereturnlinkcontents = "<sup>^</sup>"
ignoreFiles = ["\\.ipynb$", ".ipynb_checkpoints$", "\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]

# Workaround Hugo publishing taxonomy URLs as plurals - consistently use singular across Academic.
[permalinks]
authors = "/author/:slug/"
tags = "/tag/:slug/"
categories = "/category/:slug/"
publication_types = "/publication-type/:slug/"

[outputs]
home = [ "HTML", "RSS", "JSON", "WebAppManifest" ]
section = [ "HTML", "RSS" ]

[mediaTypes."application/manifest+json"]
suffixes = ["webmanifest"]

[outputFormats.WebAppManifest]
mediaType = "application/manifest+json"
rel = "manifest"

# Configure the Markdown renderer.
[markup]
defaultMarkdownHandler = "goldmark"
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true # Enable user to embed HTML snippets in Markdown content.
[markup.highlight]
codeFences = false # Disable Hugo's code highlighter as it conflicts with Academic's highligher.
[markup.tableOfContents]
startLevel = 2
endLevel = 3

[imaging]
resampleFilter = "lanczos"
quality = 90
anchor = "smart" # Anchor for cropping. Options include Smart and Center.

# Taxonomies.
[taxonomies]
tag = "tags"
category = "categories"
publication_type = "publication_types"
author = "authors"

# Related content.
[related]
threshold = 80.0
includeNewer = true
toLower = true

[[related.indices]]
name = "title"
weight = 60.0

[[related.indices]]
name = "summary"
weight = 50.0

[[related.indices]]
name = "tags"
weight = 80.0

[[related.indices]]
name = "categories"
weight = 70.0

[[related.indices]]
name = "authors"
weight = 20.0
20 changes: 20 additions & 0 deletions config/_default/languages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Languages
# Create a `[X]` block for each language you want, where X is the language ID.
# Refer to https://sourcethemes.com/academic/docs/language/

# Configure the English version of the site.
[en]
languageCode = "en-us"
# contentDir = "content/en" # Uncomment for multi-lingual sites, and move English content into `en` sub-folder.

# Uncomment the lines below to configure your website in a second language.
#[zh]
# languageCode = "zh-Hans"
# contentDir = "content/zh"
# title = "Chinese website title..."
# [zh.params]
# description = "Site description in Chinese..."
# [[zh.menu.main]]
# name = "Wo"
# url = "#about"
# weight = 1
80 changes: 80 additions & 0 deletions config/_default/menus.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Navigation Links
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
# desired widget in your `content/home/` folder.
# The weight parameter defines the order that the links will appear in.
# 设置主页头部的菜单信息,按weight数字排列
[[main]]
name = "Home" # 菜单名称
url = "/" # 对应的内容在 content/home下是哪个md
weight = 10

[[main]]
name = "Documentation"
url = "docs/"
weight = 20

[[main]]
name = "Blog"
url = "blog/"
weight = 30

[[main]]
name = "Downloads"
url = "https://github.com/kmesh-net/kmesh/releases"
weight = 40

# Right Menu
[[main_right]]
name = "<i class=\"fab fa-github-alt\" style=\"color: #333; font-size: 1rem; line-height: 1.25\"></i>"
post = ""
url = "https://github.com/kmesh-net/kmesh"
weight = 10

[[main_right]]
name = "<i class=\"fab fa-twitter\" style=\"color: #55acee; font-size: 1rem; line-height: 1.25\"></i>"
post = ""
url = "https://twitter.com/Kmesh_net"
weight = 20

#[[main_right]]
# name = "<i class=\"fab fa-slack\" style=\"color: #55acee; font-size: 1rem; line-height: 1.25\"></i>"
# post = ""
# url = "https://app.slack.com/client/T08PSQ7BQ/C052JRURD8V?selected_team_id=T08PSQ7BQ"
# weight = 30

[[main_right]]
name = "<i class=\"fab fa-weixin\" style=\"color: #55acee; font-size: 1rem; line-height: 1.25\"></i>"
post = ""
url = "https://blog.51cto.com/u_15127420/4992806"
weight = 40

# Documentation
[[docs]]
name = "Welcome"
weight = 5
identifier = "welcome"

[[docs]]
name = "Architecture"
weight = 10
identifier = "architecture"

[[docs]]
name = "quickStart"
weight = 15
identifier = "quickstart"

[[docs]]
name = "Performance"
weight = 20
identifier = "performance"

[[docs]]
name = "Developer Guide"
weight = 25
identifier = "developer guide"

[[docs]]
name = "Community"
weight = 30
identifier = "community"
Loading

0 comments on commit 89165a9

Please sign in to comment.