Doocs 开源项目使用教程

Doocs 开源项目使用教程

doocs.github.io💁‍♀️ Welcome to the Doocs Open Source organization | 欢迎加入 Doocs 开源社区项目地址:https://gitcode.com/gh_mirrors/do/doocs.github.io

1. 项目的目录结构及介绍

Doocs 开源项目的目录结构如下:

doocs.github.io/
├── _config.yml
├── _data
│   └── members.yml
├── _includes
│   ├── footer.html
│   ├── head.html
│   └── header.html
├── _layouts
│   ├── default.html
│   ├── home.html
│   └── page.html
├── _posts
│   └── 2023-01-01-welcome-to-doocs.md
├── _sass
│   ├── _base.scss
│   ├── _layout.scss
│   └── _syntax-highlighting.scss
├── assets
│   ├── css
│   │   └── main.scss
│   ├── images
│   └── js
├── index.html
└── README.md

目录结构介绍

  • _config.yml: 项目的配置文件。
  • _data/members.yml: 存储项目成员信息的文件。
  • _includes/: 包含页面组件的目录,如页眉、页脚等。
  • _layouts/: 包含页面布局的目录。
  • _posts/: 存储博客文章的目录。
  • _sass/: 包含SASS样式文件的目录。
  • assets/: 包含静态资源(如CSS、图片、JS文件)的目录。
  • index.html: 项目的主页文件。
  • README.md: 项目的介绍文档。

2. 项目的启动文件介绍

项目的启动文件是 index.html,它是访问项目时的入口文件。该文件包含了页面的基本结构和引用,通过加载必要的CSS和JS文件来渲染页面。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Doocs 开源社区</title>
    <link rel="stylesheet" href="assets/css/main.scss">
</head>
<body>
    {% include header.html %}
    <main>
        <h1>欢迎来到 Doocs 开源社区</h1>
        <p>这是一个非常友好的技术社区,专注于分享技术领域相关知识。</p>
    </main>
    {% include footer.html %}
    <script src="assets/js/main.js"></script>
</body>
</html>

3. 项目的配置文件介绍

项目的配置文件是 _config.yml,它包含了项目的基本配置信息,如网站标题、描述、URL等。

title: Doocs 开源社区
description: 这是一个非常友好的技术社区,专注于分享技术领域相关知识。
url: "https://doocs.github.io"
github_username: doocs
email: contact@yanglibin.info

配置文件介绍

  • title: 网站的标题。
  • description: 网站的描述。
  • url: 网站的URL。
  • github_username: GitHub用户名。
  • email: 联系邮箱。

通过修改 _config.yml 文件,可以自定义网站的显示信息和行为。

doocs.github.io💁‍♀️ Welcome to the Doocs Open Source organization | 欢迎加入 Doocs 开源社区项目地址:https://gitcode.com/gh_mirrors/do/doocs.github.io

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

伏崴帅

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值