Skip to content

Commit

Permalink
adjust content.
Browse files Browse the repository at this point in the history
  • Loading branch information
canvaskent committed Nov 30, 2021
1 parent 9ab9cfa commit 1d36169
Show file tree
Hide file tree
Showing 23 changed files with 109 additions and 76 deletions.
27 changes: 27 additions & 0 deletions assets/icons/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions content/zh/_index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "WeeShop"
linkTitle = "WeeShop"

+++

{{< blocks/cover title="WeeShop 开源电子商务系统!" image_anchor="top" height="full" color="orange" >}}
Expand Down Expand Up @@ -36,7 +35,7 @@
{{% /blocks/feature %}}


{{% blocks/feature icon="fab fa-twitter" title="关注媒体" url="https://weibo.com/weeshop" %}}
{{% blocks/feature icon="fab fa-weibo" title="关注媒体" url="https://weibo.com/weeshop" %}}
关注 WeeShop 的微博,或微信公众号,随时知晓 WeeShop 的新版本、新特性、新进展,
不错过 WeeShop 的精采时刻。
{{% /blocks/feature %}}
Expand Down
55 changes: 1 addition & 54 deletions content/zh/docs/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "快速开始"
title: "文档"
linkTitle: "文档"
menu:
main:
Expand Down Expand Up @@ -60,59 +60,6 @@ QQ群:714023327
- 使用全文检索技术,可以选择使用各种流行的全文检索方案,如Apache solr等。
- 支持符合工业标准的RESTful接口,可配置多种认证方式HTTP Basic、Oauth2.0 等,轻松进行移动应用开发。

## 快速安装


本项目提供了预置的 Docker 镜像,并编排到了模板工程根目录的 `docker-compose.yml` 中。

如果使用 `docker-compose`,你将无须关心PHP环境问题,您的电脑啥都不需要安装,除了基本的 `Docker` 服务和 `docker-compose`

如果docker镜像下载慢,请自行了解 [如何加速docker镜像下载](https://www.baidu.com/s?wd=docker%E5%8A%A0%E9%80%9F)

如果不希望使用 docker 快速安装,也可以参考 [通过传统的手工方式安装](user_guide/install.html)

先决条件:
- 确保本机8080端口没有被占用。这是因为 `docker-compose.yml` 中需要映射 Web 容器的 80 端口到物理机的 8080 端口。

```bash
# 创建 WeeShop 模板工程sdsdfsdf
composer create-project weeshop/project-base:dev-8.x-1.x WeeShop --stability dev --no-interaction -vvv

# 进行工程目录
cd WeeShop

# 启动 docker 容器
docker-compose up -d

# 进入 docker 容器
docker-compose exec web bash

# 进入容器后,在容器内继续运行下面的命令
# 安装实例
su - application -c \
"cd /app/web/sites && /usr/local/bin/drupal site:install --force --no-interaction weeshop \
--langcode='en' \
--db-type='mysql' \
--db-host='db' \
--db-name='drupal' \
--db-user='root' \
--db-pass='123' \
--db-port='3306' \
--site-name='My WeeShop' \
--site-mail='164713332@qq.com' \
--account-name='admin' \
--account-mail='164713332@qq.com' \
--account-pass='123'"

# 更新翻译
su - application -c "cd /app/web/sites && \
/usr/local/bin/drush -vvv locale:check && \
/usr/local/bin/drush -vvv locale:update"
```

浏览器访问 `http://localhost:8080`,开始体验吧!


#### 重要Issuse
- Docker for windows, volume默认权限是755,而无法更改 [#issues39](https://github.com/docker/for-win/issues/39)

Expand Down
5 changes: 0 additions & 5 deletions content/zh/docs/dev_guide/_index.md

This file was deleted.

5 changes: 0 additions & 5 deletions content/zh/docs/dev_guide/module.md

This file was deleted.

5 changes: 0 additions & 5 deletions content/zh/docs/dev_guide/theme.md

This file was deleted.

6 changes: 6 additions & 0 deletions content/zh/docs/develop/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 开发者指南
weight: 30
---

开发者指南。
6 changes: 6 additions & 0 deletions content/zh/docs/develop/module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 模块开发
weight: 30
---

> 此主题有待编写
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: 创建项目工程
weight: 10
---

> 此主题有待编写
6 changes: 6 additions & 0 deletions content/zh/docs/develop/theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 主题开发
weight: 20
---

> 此主题有待编写
55 changes: 55 additions & 0 deletions content/zh/docs/get-started/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
title: "快速开始"
linkTitle: "快速开始"
weight: 10
---


本项目提供了预置的 Docker 镜像,并编排到了模板工程根目录的 `docker-compose.yml` 中。

如果使用 `docker-compose`,你将无须关心PHP环境问题,您的电脑啥都不需要安装,除了基本的 `Docker` 服务和 `docker-compose`

如果docker镜像下载慢,请自行了解 [如何加速docker镜像下载](https://www.baidu.com/s?wd=docker%E5%8A%A0%E9%80%9F)

如果不希望使用 docker 快速安装,也可以参考 [通过传统的手工方式安装](user_guide/install.html)

先决条件:
- 确保本机8080端口没有被占用。这是因为 `docker-compose.yml` 中需要映射 Web 容器的 80 端口到物理机的 8080 端口。

```bash
# 创建 WeeShop 模板工程sdsdfsdf
composer create-project weeshop/project-base:dev-8.x-1.x WeeShop --stability dev --no-interaction -vvv

# 进行工程目录
cd WeeShop

# 启动 docker 容器
docker-compose up -d

# 进入 docker 容器
docker-compose exec web bash

# 进入容器后,在容器内继续运行下面的命令
# 安装实例
su - application -c \
"cd /app/web/sites && /usr/local/bin/drupal site:install --force --no-interaction weeshop \
--langcode='en' \
--db-type='mysql' \
--db-host='db' \
--db-name='drupal' \
--db-user='root' \
--db-pass='123' \
--db-port='3306' \
--site-name='My WeeShop' \
--site-mail='164713332@qq.com' \
--account-name='admin' \
--account-mail='164713332@qq.com' \
--account-pass='123'"

# 更新翻译
su - application -c "cd /app/web/sites && \
/usr/local/bin/drush -vvv locale:check && \
/usr/local/bin/drush -vvv locale:update"
```

浏览器访问 `http://localhost:8080`,开始体验吧!
6 changes: 6 additions & 0 deletions content/zh/docs/manual/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 用户指南
weight: 20
---

用户指南。
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions content/zh/docs/user_guide/_index.md

This file was deleted.

0 comments on commit 1d36169

Please sign in to comment.