Skip to content

Commit ef36544

Browse files
corgiboygsjimbajin
authored andcommitted
rebuild doc
add en doc
1 parent da78de5 commit ef36544

File tree

325 files changed

+17764
-13147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

325 files changed

+17764
-13147
lines changed

config.toml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ baseURL = "/"
22
title = "Apache HugeGraph"
33

44
# Language settings
5-
contentDir = "content/en"
6-
defaultContentLanguage = "en"
5+
contentDir = "content/cn"
6+
defaultContentLanguage = "cn"
77
defaultContentLanguageInSubdir = false
88
# Useful when translating.
99
enableMissingTranslationPlaceholders = true
@@ -69,27 +69,18 @@ id = "UA-00000000-0"
6969
# Language configuration
7070

7171
[languages]
72-
[languages.en]
72+
[languages.cn]
7373
title = "HugeGraph"
7474
description = "Apache HugeGraph site"
75-
languageName ="English"
75+
languageName ="中文"
76+
contentDir = "content/cn"
7677
# Weight used for sorting.
7778
weight = 1
78-
[languages.no]
79-
title = "Goldydocs"
80-
description = "Docsy er operativsystem for skyen"
81-
languageName ="Norsk"
82-
contentDir = "content/no"
83-
time_format_default = "02.01.2006"
84-
time_format_blog = "02.01.2006"
85-
86-
[languages.fa]
87-
title = "اسناد گلدی"
88-
description = "یک نمونه برای پوسته داکسی"
89-
languageName ="فارسی"
90-
contentDir = "content/fa"
91-
time_format_default = "2006.01.02"
92-
time_format_blog = "2006.01.02"
79+
[languages.en]
80+
title = "HugeGraph"
81+
description = "Apache HugeGraph site"
82+
languageName ="English"
83+
contentDir = "content/en"
9384

9485
[markup]
9586
[markup.goldmark]

content/cn/_index.html

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
+++
2+
title = "HugeGraph Website"
3+
linkTitle = "Huge Docs"
4+
5+
+++
6+
7+
{{< blocks/cover title="Welcome to Apache HugeGraph: A Open Source Project!" image_anchor="top" height="full" color="orange" >}}
8+
<div class="mx-auto">
9+
<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
10+
Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
11+
</a>
12+
<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://github.com/hugegraph/hugegraph">
13+
Download <i class="fab fa-github ml-2 "></i>
14+
</a>
15+
<p class="lead mt-5">Porridge temperature assessment - in the cloud!</p>
16+
{{< blocks/link-down color="info" >}}
17+
</div>
18+
{{< /blocks/cover >}}
19+
20+
21+
{{% blocks/lead color="primary" %}}
22+
Goldydocs provides a single web UI providing visibility into porridge temperature, chair size, and bed softness metrics! You can even find out who's been eating **your** porridge.
23+
24+
(Sadly, Goldydocs isn't a real project, but you can use this site as an example to create your own real websites with [Docsy](http://docsy.dev))
25+
{{% /blocks/lead %}}
26+
27+
{{< blocks/section color="dark" >}}
28+
{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}}
29+
The Goldydocs UI now shows chair size metrics by default.
30+
31+
Please follow this space for updates!
32+
{{% /blocks/feature %}}
33+
34+
35+
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/hugegraph/hugegraph" %}}
36+
We do a [Pull Request](https://github.com/hugegraph/hugegraph/pulls) contributions workflow on **GitHub**. New users are always welcome!
37+
{{% /blocks/feature %}}
38+
39+
40+
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}}
41+
For announcement of latest features etc.
42+
{{% /blocks/feature %}}
43+
44+
45+
{{< /blocks/section >}}
46+
47+
48+
{{< blocks/section >}}
49+
<div class="col">
50+
<h1 class="text-center">This is the second Section</h1>
51+
</div>
52+
53+
{{< /blocks/section >}}
54+
55+
56+
57+
{{< blocks/section >}}
58+
{{% blocks/feature icon="fab fa-app-store-ios" title="Download **from AppStore**" %}}
59+
Get the Goldydocs app!
60+
{{% /blocks/feature %}}
61+
62+
63+
{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/hugegraph/hugegraph" %}}
64+
We do a [Pull Request](https://github.com/hugegraph/hugegraph/pulls) contributions workflow on **GitHub**. New users are always welcome!
65+
{{% /blocks/feature %}}
66+
67+
68+
{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/GoHugoIO" %}}
69+
For announcement of latest features etc.
70+
{{% /blocks/feature %}}
71+
72+
73+
{{< /blocks/section >}}
74+
75+
{{< blocks/section >}}
76+
77+
<div class="col-12">
78+
<h1 class="text-center">This is another Section</h1>
79+
</div>
80+
81+
{{< /blocks/section >}}

content/cn/about/_index.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: About Goldydocs
3+
linkTitle: About
4+
menu:
5+
main:
6+
weight: 10
7+
8+
---
9+
10+
11+
{{< blocks/cover title="About Goldydocs" image_anchor="bottom" height="min" >}}
12+
13+
<p class="lead mt-5">A sample site using the Docsy Hugo theme.
14+
</p>
15+
16+
{{< /blocks/cover >}}
17+
18+
{{% blocks/lead %}}
19+
Goldydocs is a sample site using the <a href="https://github.com/google/docsy">Docsy</a> Hugo theme that shows what it can do and provides you with a template site structure. It’s designed for you to clone and edit as much as you like. See the different sections of the documentation and site for more ideas.
20+
{{% /blocks/lead %}}
21+
22+
23+
{{< blocks/section >}}
24+
<div class="col-12">
25+
<h1 class="text-center">This is another section</h1>
26+
</div>
27+
28+
{{< /blocks/section >}}
29+
30+
31+
32+
{{< blocks/section >}}
33+
34+
<div class="col-12">
35+
<h1 class="text-center">This is another section</h1>
36+
</div>
37+
38+
{{< /blocks/section >}}

content/cn/blog/_index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Docsy Blog"
3+
linkTitle: "Blog"
4+
menu:
5+
main:
6+
weight: 30
7+
---
8+
9+
10+
This is the **blog** section. It has two categories: News and Releases.
11+
12+
Files in these directories will be listed in reverse chronological order.
13+

content/cn/blog/news/_index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
---
3+
title: "News About Docsy"
4+
linkTitle: "News"
5+
weight: 20
6+
---
7+
8+

content/fa/blog/news/first-post/featured-sunset-get.png renamed to content/cn/blog/news/first-post/featured-sunset-get.png

File renamed without changes.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
date: 2018-10-06
3+
title: "Easy documentation with Docsy"
4+
linkTitle: "Announcing Docsy"
5+
description: "The Docsy Hugo theme lets project maintainers and contributors focus on content, not on reinventing a website infrastructure from scratch"
6+
author: Riona MacNamara ([@rionam](https://twitter.com/bepsays))
7+
resources:
8+
- src: "**.{png,jpg}"
9+
title: "Image #:counter"
10+
params:
11+
byline: "Photo: Riona MacNamara / CC-BY-CA"
12+
---
13+
14+
**This is a typical blog post that includes images.**
15+
16+
The front matter specifies the date of the blog post, its title, a short description that will be displayed on the blog landing page, and its author.
17+
18+
## Including images
19+
20+
Here's an image (`featured-sunset-get.png`) that includes a byline and a caption.
21+
22+
{{< imgproc sunset Fill "600x300" >}}
23+
Fetch and scale an image in the upcoming Hugo 0.43.
24+
{{< /imgproc >}}
25+
26+
The front matter of this post specifies properties to be assigned to all image resources:
27+
28+
```
29+
resources:
30+
- src: "**.{png,jpg}"
31+
title: "Image #:counter"
32+
params:
33+
byline: "Photo: Riona MacNamara / CC-BY-CA"
34+
```
35+
36+
To include the image in a page, specify its details like this:
37+
38+
```
39+
{{< imgproc sunset Fill "600x300" >}}
40+
Fetch and scale an image in the upcoming Hugo 0.43.
41+
{{< /imgproc >}}
42+
```
43+
44+
The image will be rendered at the size and byline specified in the front matter.
45+
46+

0 commit comments

Comments
 (0)