Skip to content

Commit f5fc85a

Browse files
authored
Add Persian overview page, refactor English pages (#303)
1 parent 3f24116 commit f5fc85a

File tree

10 files changed

+99
-43
lines changed

10 files changed

+99
-43
lines changed

content/en/docs/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Documentation
33
linkTitle: Docs
44
menu: {main: {weight: 20}}
5-
weight: 20
65
---
76

87
{{% pageinfo %}}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
title: Concepts
3-
weight: 4
43
description: >
54
What does your user need to understand about your project in order to use it - or potentially contribute to it?
5+
weight: 4
66
---
77

88
{{% pageinfo %}}
9+
910
This is a placeholder page that shows you how to use this template site.
11+
1012
{{% /pageinfo %}}
1113

1214
For many projects, users may not need much information beyond the information in the [Overview](/docs/overview/), so this section is **optional**. However if there are areas where your users will need a more detailed understanding of a given term or feature in order to do anything useful with your project (or to not make mistakes when using it) put that information in this section. For example, you may want to add some conceptual pages if you have a large project with many components and a complex architecture.

content/en/docs/contribution-guidelines/_index.md renamed to content/en/docs/contribution-guidelines.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
title: Contribution Guidelines
3-
weight: 10
43
description: How to contribute to the docs
4+
weight: 10
55
---
66

77
{{% pageinfo %}}
8+
89
These basic sample guidelines assume that your Docsy site is deployed using Netlify and your files are stored in GitHub. You can use the guidelines "as is" or adapt them with your own instructions: for example, other deployment options, information about your doc project's file structure, project-specific review guidelines, versioning guidelines, or any other information your users might find useful when updating your site. [Kubeflow](https://github.com/kubeflow/website/blob/master/README.md) has a great example.
910

1011
Don't forget to link to your own doc repo rather than our example site! Also make sure users can find these guidelines from your doc repo README: either add them there and link to them from this page, add them here and link to them from the README, or include them in both locations.
12+
1113
{{% /pageinfo %}}
1214

1315
We use [Hugo](https://gohugo.io/) to format and generate our website, the
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
title: Examples
3-
weight: 3
4-
date: 2017-01-05
53
description: See your project in action!
4+
date: 2017-01-05
5+
weight: 3
66
---
77

88
{{% pageinfo %}}
9+
910
This is a placeholder page that shows you how to use this template site.
11+
1012
{{% /pageinfo %}}
1113

1214
Do you have any example **applications** or **code** for your users in your repo

content/en/docs/overview.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Overview
3+
description: Here's where your user finds out if your project is for them.
4+
weight: 1
5+
---
6+
7+
{{% pageinfo %}}
8+
9+
This is a placeholder page that shows you how to use this template site.
10+
11+
{{% /pageinfo %}}
12+
13+
The Overview is where your users find out about your project. Depending on the
14+
size of your docset, you can have a separate overview page (like this one) or
15+
put your overview contents in the Documentation landing page (like in the Docsy
16+
User Guide).
17+
18+
Try answering these questions for your user in this page:
19+
20+
## What is it?
21+
22+
Introduce your project, including what it does or lets you do, why you would use
23+
it, and its primary goal (and how it achieves it). This should be similar to
24+
your README description, though you can go into a little more detail here if you
25+
want.
26+
27+
## Why do I want it?
28+
29+
Help your user know if your project will help them. Useful information can
30+
include:
31+
32+
- **What is it good for?**: What types of problems does your project solve? What
33+
are the benefits of using it?
34+
35+
- **What is it not good for?**: For example, point out situations that might
36+
intuitively seem suited for your project, but aren't for some reason. Also
37+
mention known limitations, scaling issues, or anything else that might let
38+
your users know if the project is not for them.
39+
40+
- **What is it _not yet_ good for?**: Highlight any useful features that are
41+
coming soon.
42+
43+
## Where should I go next?
44+
45+
Give your users next steps from the Overview. For example:
46+
47+
- [Getting Started](/docs/getting-started/): Get started with $project
48+
- [Examples](/docs/examples/): Check out some example code!

content/en/docs/overview/_index.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

content/fa/docs/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: مستندات
33
linkTitle: مستندات
4-
weight: 20
54
menu:
65
main:
76
weight: 20

content/fa/docs/overview.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: مرور کلی
3+
description: در اینجا کاربران شما متوجه می‌شوند که آیا پروژه شما برای آن‌ها مناسب است یا نه.
4+
weight: 1
5+
---
6+
7+
{{% pageinfo %}}
8+
9+
این یک صفحه جایگزین است که به شما نشان می‌دهد چگونه از این سایت الگو استفاده کنید.
10+
11+
{{% /pageinfo %}}
12+
13+
مرور کلی جایی است که کاربران شما درباره پروژه شما اطلاعات کسب می‌کنند. بسته به اندازه مجموعه مستندات شما، می‌توانید یک صفحه مرور جداگانه داشته باشید (مثل این یکی) یا محتوای مرور خود را در صفحه اصلی مستندات قرار دهید (مثل راهنمای کاربر Docsy).
14+
15+
سعی کنید به این سوالات برای کاربر خود در این صفحه پاسخ دهید:
16+
17+
## این چیست؟
18+
19+
پروژه خود را معرفی کنید، از جمله کاری که انجام می‌دهد یا به شما اجازه می‌دهد انجام دهید، چرا باید از آن استفاده کنید، و هدف اصلی آن (و چگونه به آن دست می‌یابد). این باید شبیه به توضیحات README شما باشد، اگرچه می‌توانید در صورت تمایل به جزئیات بیشتری در اینجا بپردازید.
20+
21+
## چرا می‌خواهم آن را داشته باشم؟
22+
23+
به کاربران خود کمک کنید بدانند آیا پروژه شما به آن‌ها کمک می‌کند یا نه. اطلاعات مفید می‌تواند شامل موارد زیر باشد:
24+
25+
- **برای چه خوب است؟**: چه نوع مشکلاتی را پروژه شما حل می‌کند؟ مزایای استفاده از آن چیست؟
26+
27+
- **برای چه خوب نیست؟**: به عنوان مثال، شرایطی را ذکر کنید که ممکن است به صورت شهودی مناسب پروژه شما به نظر برسد، اما به دلایلی مناسب نیست. همچنین محدودیت‌های شناخته شده، مشکلات مقیاس‌پذیری، یا هر چیز دیگری که ممکن است به کاربران شما بگوید که پروژه برای آن‌ها نیست را ذکر کنید.
28+
29+
- **برای چه _هنوز_ خوب نیست؟**: هر ویژگی مفیدی که به زودی می‌آید را برجسته کنید.
30+
31+
## بعد کجا باید بروم؟
32+
33+
گام‌های بعدی را از مرور کلی به کاربران خود بدهید. به عنوان مثال:
34+
35+
- [شروع کار](/docs/getting-started/): با $project شروع کنید
36+
- [مثال‌ها](/docs/examples/): برخی کدهای نمونه را بررسی کنید!

content/no/docs/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: TechOS-Dokumentasjon
33
linkTitle: Dokumentasjon
4-
weight: 20
54
menu:
65
main:
76
weight: 20

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@
3838
"cross-env": "^7.0.3",
3939
"hugo-extended": "0.126.1",
4040
"postcss-cli": "^11.0.0"
41+
},
42+
"private": true,
43+
"prettier": {
44+
"proseWrap": "always",
45+
"singleQuote": true
4146
}
4247
}

0 commit comments

Comments
 (0)