Giter Site home page Giter Site logo

wechaty / jekyll Goto Github PK

View Code? Open in Web Editor NEW
37.0 10.0 58.0 575.27 MB

Wechaty Official Website for News, Blogs, Contributor Profiles, Powered by Jekyll.

Home Page: https://wechaty.js.org/blog

License: Other

JavaScript 16.18% CSS 30.26% TypeScript 1.51% Makefile 0.14% HTML 12.14% Ruby 0.08% Java 39.46% Shell 0.24%
jekyll blog news contributors

jekyll's Introduction

wechaty logo

Wechaty Organization Website

Repository for the Wechaty Organization Website, a resource for the Wechaty Organization. It is the official Wechaty website for publishing latest news, blog posts, and documentation from our open source community.

Jekyll

Tutorials

  1. 零基础小白在Wechaty社区发表自己的第一篇博客, @juzibot, Jul 02, 2021
  2. 入门:小白如何在wechaty社区发布自己的第一篇博客(一), @atorber, Apr 22, 2021

How To Post a Blog

To submit a blog post for publication on wechaty.js.org, you can follow the steps below.

  1. Fork this repository. If you don't know what is meant by forking a repository, read about it here
  2. Clone the forked repository to your local machine. If you don't know how to do that, this article explains it well
  3. Make sure your forked repository is in sync with the main repository. If you don't know how to sync a forked repository,read about it in this article
  4. We prefer using gitHub flow. Therefore start by creating a branch for your blog using the command git checkout -b name-of-blog-branch. Give the branch a meaningful name
  5. Create a markdown file in jekyll/_posts folder. The file name should follow the format YYYY-MM-DD-your-blog-slug.md. For example 2016-12-03-welcome-to-wechaty.md
  6. Write your blog in markdown in the file you created in the previous step. If you are not familiar with markdown syntax, you can learn it here
  7. Add related images to jekyll/assets folder under $YEAR/$MONTH-your-blog-slug/ directory
  8. Add your info into jekyll/_contributors/your_github_id.md
  9. Use mermaid: URL
  10. Commit your changes using the command git commit -am "YOUR_BLOG_TITLE". YOUR_BLOG_TITLE is the title of your blog
  11. Push your branch to github using the command git push origin name-of-blog-branch.
  12. Create new Pull Request(PR)
  13. Sign the CLA
  14. Wait for the continuous integration workflow run to finish. If it is failing, fix whatever is making it to fail so that CI turns green
  15. Wait for @wechaty/editors to review your PR

That's it!

Guidelines For Writing a Blog Post

1. Your blog post should have a Header

The header of your blog post should have a title, author and image.

This is illustrated in the example below:

---
title: "'Score Your Face Photo' a ML&Wechaty practice"
author: your_github_username
image: your_teaser_image_path
---
<One line abstract for your blog post>

<Your beautiful blog post contents...>

2. Writing Style

  • You should keep all filenames and URLs as lowercase. Use - character between words instead of space when creating a new file or directory. e.g. 2017-10-06-wechat-pc-impactor instead of 2017-10-06-WeChat PC Impactor. No Chinese should be used in any filename.
  • Find a good image for the blog to make it more beautiful.
  • You should embed photos and videos before publishing, save all external files to the /jekyll/assets/${YEAR}/$MONTH-your-blog-slug/ directory.

3. Do Not Commit Unrelated Files

Please do not commit unrelated files. It will keep things tidy and make it easier to review your PR.

4. How To Add Videos and PDFs To Your Blog Post

You can add videos and PDFs to your blog post by using the syntax below.

Example of how to add video or pdf

{% include iframe.html src="https://www.youtube.com/watch?v=3eq8wJfCAWs" %}

or

{% include iframe.html src="/assets/2020/qijibot/final.pdf" %}

You can read more at: Add iframe to wechaty blog

How To Run Tests

In order to make sure your changes have not broken anything, you can run the following commands before pushing your changes to gitHub.

npm install
npm test

How To Preview Your changes

If you want to preview your blog post or changes on localhost, you need to have Jekyll installed in your machine. You can follow the jekyll quickstart instructions to install jekyll.

1. Install Jekyll by Hand

Run Jekyll at localhost to preview your blog post by running the commands below.

make install
cd jekyll; make serve # or either run `./scripts/jekyll-serve.sh` for a fresh new start by cleaning cache

2. Preview the Blog

You can view the blog by navigating to http://127.0.0.1:4000/blog/ in your browser

How To Make Other Contributions

If you are not interested in writing a blog post but would still love to make a contribution, you are still welcome. We are delighted to have you around.

Why contribute?

As an open source product, Wechaty thrives from contributions of community members. Whatever your skill set is, there is a lot you can do to help us make Wechaty better! So start forking!

At the same time, we also meet up offline all over the world. Here are some activities you are invited to join if you are interested:

How to Run Locally

  1. Clone this repository: git clone "https://github.com/wechaty/wechaty.js.org"
  2. On the terminal navigate to the root directory cd wechaty.js.org
  3. Run the commands :
    1. npm install
    2. npm run docusaurus:build
    3. npm run docusaurus:serve
  4. The site will be running locally on http://localhost:3000

How To Contribute To the Documentation

  1. Fork this repository
  2. Create your documentation branch: git checkout -b branch-name
  3. Make changes to the documentation in markdown
  4. Add changes to the staging area git add .
  5. Commit your changes using the command git commit -m 'commit message'
  6. Push your changes to gitHub git push origin branch-name
  7. Create new Pull Request

Resources

Writers

contributor contributor contributor contributor contributor contributor contributor contributor

To get to know all our writers, see https://github.com/wechaty/wechaty.js.org/graphs/contributors

History

main v0.11 (Apr 1, 2022)

Split repo from one to two: Jekyll (this one) and Docusaurus. See: Issue wechaty/wechaty.js.org#1

v0.9 (Aug 23, 2021)

  1. Add OpenAPI Specification docs at https://wechaty.js.org/docs/openapi/ (#1218)

v0.5 (Aug 12, 2020)

  1. Using docusaurus for docs
  2. Rename chatie to wechaty

v0.3 (Mar 9, 2017)

Rename wechaty to chatie

v0.0.1 (Dec 4, 2016)

Init version

Maintainers

  1. @lijiarui, Rui LI, Microsoft AI MVP, Founder & CEO of Juzi.BOT (YC W19 Alumni)
  2. @huan, Huan LI, Tencent TVP of Chatbot, <[email protected]>
  3. @wj-Mcat, Jingjing WU, Author of Python Wechaty

And wechaty/contributors

Copyright & License

  • Code & Docs © 2016-now Wechaty Contributors https://github.com/wechaty
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

jekyll's People

Contributors

abhishek-iiit avatar arnabiscreating avatar bikaiqiao avatar choogoo avatar chris-4444 avatar fangjiyuan avatar gangena avatar gavinwang23 avatar hcfw007 avatar huan avatar iamrajiv avatar jiangxiaotao1024 avatar karrykeksis avatar kevintung avatar kxz18 avatar leochen-g avatar lijiarui avatar mrzilinxiao avatar nibble0101 avatar przzl avatar rohitesh-kumar-jain avatar sajen-k avatar sbis04 avatar shraddhavp avatar shwetalsoni avatar soumi7 avatar suninsky avatar vasvi-sood avatar wj-mcat avatar zzzyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jekyll's Issues

Resolve the performance issue: 300 seconds for each build

Resources:

Log Messages

$ JEKYLL_ENV=production jekyll build --profile 
Configuration file: /home/huan/git/wechaty/jekyll/jekyll/_config.yml
            Source: /home/huan/git/wechaty/jekyll/jekyll
       Destination: /home/huan/git/wechaty/jekyll/jekyll/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts

Build Process Summary: 

| PHASE      |     TIME |
+------------+----------+
| RESET      |   0.0002 |
| READ       |   0.6136 |
| GENERATE   |   0.0232 |
| RENDER     | 259.4889 |
| CLEANUP    |   0.0659 |
| WRITE      |  17.0657 |
+------------+----------+
| TOTAL TIME | 277.2575 |
 

Site Render Stats: 

| Filename                                                               | Count |       Bytes |    Time |
+------------------------------------------------------------------------+-------+-------------+---------+
| _layouts/default.html                                                  |   705 | 1906055.07K | 252.649 |
| _includes/search-lunr.html                                             |   705 | 1887068.58K | 248.583 |
| _layouts/contributor.html                                              |   246 |    1384.33K |   1.766 |
| _layouts/post.html                                                     |   436 |    8558.94K |   0.941 |
| _includes/main-loop-card-post.html                                     |  3138 |    3143.27K |   0.484 |
| blog/index.html                                                        |    15 |     861.89K |   0.405 |
| _pages/tags.html                                                       |     1 |    1873.63K |   0.333 |
| _includes/meta-read-time.html                                          |   436 |      25.80K |   0.149 |
| _pages/categories.html                                                 |     1 |     526.62K |   0.080 |
| sitemap.xml                                                            |     1 |      93.18K |   0.067 |
| _includes/sidebar-featured.html                                        |    18 |     440.90K |   0.056 |
| _includes/menu-header.html                                             |   705 |     415.15K |   0.030 |
| _includes/item-content.html                                            |   246 |     594.27K |   0.029 |
| _includes/iframe.html                                                  |   282 |     112.08K |   0.029 |
| feed.xml                                                               |     1 |     152.42K |   0.028 |
| news/index.html                                                        |     1 |     148.99K |   0.022 |
| _layouts/items.html                                                    |     1 |     259.75K |   0.019 |
| _includes/main-loop-card-item.html                                     |   246 |     256.19K |   0.016 |
| _includes/tracking-footer.html                                         |   705 |     201.04K |   0.014 |
| _includes/comments.html                                                |   683 |     519.59K |   0.013 |
| _includes/share.html                                                   |   682 |     854.50K |   0.010 |
| _posts/2021-09-10-baidu-paddle-machine-learning-chatbot-competition.md |     1 |      24.61K |   0.003 |
| _posts/2021-10-09-summer-2021-wechaty-soc-final-demo-day.md            |     1 |      24.88K |   0.002 |
| _layouts/page-sidebar.html                                             |     1 |       4.35K |   0.001 |
| _pages/about.html                                                      |     1 |       2.82K |   0.001 |
| _posts/2020-08-22-summer-2020-wechaty-soc-midterm-demo-day.md          |     1 |      11.70K |   0.001 |
| _posts/2020-06-19-multi-language-wechaty-beta-release.md               |     1 |      23.64K |   0.001 |
| _posts/2021-11-05-kaiyuanshe-oss-con-2021-wechaty-gsod.md              |     1 |       3.38K |   0.001 |
| _posts/2017-01-01-getting-started-wechaty.md                           |     1 |       2.67K |   0.001 |
| _posts/2020-08-24-add-video-to-wechaty-blog.md                         |     1 |       6.51K |   0.001 |
| _contributors/rickyyin98.md                                            |     1 |       1.41K |   0.001 |
| _posts/2022-03-14-puppet-whatsapp-1.0-released.md                      |     1 |       6.93K |   0.001 |
| _posts/2020-08-05-wechaty-puppet-maker.md                              |     1 |       5.50K |   0.001 |
| _posts/2022-03-14-puppet-whatsapp-1.0-released.md/#excerpt             |     1 |       0.38K |   0.001 |
| _posts/2020-04-17-microsoft-tech-forum-rui-interview.md                |     1 |      15.13K |   0.001 |
| _posts/2020-12-31-osschat-a-bridge-to-the-apache-way-in-china.md       |     1 |       6.29K |   0.001 |
| _contributors/huan.md                                                  |     1 |       1.63K |   0.001 |
| _posts/2021-08-26-ospp-mid-term-wechaty-puppet-oa.md                   |     1 |       4.21K |   0.001 |
| _posts/2020-09-26-wechaty-words-per-day-plugin-final.md                |     1 |       5.97K |   0.001 |
| _posts/2021-08-30-ospp-mid-term-5g-chatbot-puppet.md                   |     1 |       5.06K |   0.001 |
| _posts/2021-10-05-ospp-final-term-wechaty-itchat-puppet.md             |     1 |       8.19K |   0.001 |
| _posts/2021-08-30-ospp-mid-term-wechaty-puppet-lark.md                 |     1 |       4.55K |   0.001 |
| _posts/2021-08-26-ospp-mid-term-wechaty-piggy-bro.md                   |     1 |       5.89K |   0.001 |
| _posts/2020-08-15-wechaty-words-per-day-plugin-mid-term.md             |     1 |       5.41K |   0.001 |
| _posts/2021-09-28-ospp-final-term-matrix-wechaty.md                    |     1 |       7.28K |   0.001 |
| _posts/2021-02-17-summer-wechaty-nanjing-summit-journey.md             |     1 |       3.00K |   0.001 |
| _posts/2021-10-06-ospp-final-term-wechaty-piggy-bro.md                 |     1 |       4.69K |   0.001 |
| _posts/2020-09-26-chassist-bot-final.md                                |     1 |      11.26K |   0.001 |
| _posts/2021-09-29-final-term-club-managment.md                         |     1 |       5.69K |   0.001 |
| _posts/2021-08-29-ospp-mid-term-wechaty-itchat-puppet.md               |     1 |       7.03K |   0.001 |
+------------------------------------------------------------------------+-------+-------------+---------+
| TOTAL (for 50 files)                                                   |  9283 | 3813766.26K | 505.752 |
 
                    done in 277.307 seconds.
 Auto-regeneration: disabled. Use --watch to enable.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Cannot use templates to Importing file from another git

Using template: https://github.com/Chatie/docs/blob/master/root/wechaty/api.md as gitbook docs says(https://toolchain.gitbook.com/templating/conrefs.html) But it cannot work as expect online.

Actually, when I run localhost, I find it can import other files in API, it works well.

image

While when I commit to GitHub, the online version cannot import API successfully:

image

This is because it failed to exec pre-push hook script:

➜  root git:(master) git push origin master

> @chatie/[email protected] lint /Users/jiaruili/git/docs
> npm run lint:md && npm run lint:yaml


> @chatie/[email protected] lint:md /Users/jiaruili/git/docs
> markdownlint *.md docs/*.md docs/**/*.md


> @chatie/[email protected] lint:yaml /Users/jiaruili/git/docs
> yamllint .gitbook.yml

✔ YAML Lint successful.
v0.0.30
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 688 bytes | 688.00 KiB/s, done.
Total 8 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), completed with 5 local objects.
To https://github.com/Chatie/docs
   def8079..4eb27aa  master -> master
  ____ _ _        ____            _
 / ___(_) |_     |  _ \ _   _ ___| |__
| |  _| | __|    | |_) | | | / __| '_ \
| |_| | | |_     |  __/| |_| \__ \ | | |
 \____|_|\__|    |_|    \__,_|___/_| |_|

 ____                              _ _
/ ___| _   _  ___ ___ ___  ___  __| | |
\___ \| | | |/ __/ __/ _ \/ _ \/ _` | |
 ___) | |_| | (_| (_|  __/  __/ (_| |_|
|____/ \__,_|\___\___\___|\___|\__,_(_)




 ### Npm verion bumped and pushed by inner push inside hook pre-push ###
 ------- vvvvvvv outer push will be canceled, never mind vvvvvvv -------



Failed to exec pre-push hook script
error: failed to push some refs to 'https://github.com/Chatie/docs'

migrate docs to a stable docs product

Since gitbook server sometimes is blocked by GFW, it is hard for some Chinese users read docs. So we are trying to migrate docs to a stable place but hasn't decided yet.

Some optional:

  • 看云

。。。

jekyll 对 mermaid 的支持

Demo

flowchart LR
    Polyglot-->Python
    Polyglot-->Go
    Polyglot -->Rust
    Python-->Grpc
    Go-->Grpc
    Rust-->Grpc
    Grpc-->Puppet
    Puppet-->Padlocal
    Puppet-->Wechat4U
    Puppet-->XP
    Padlocal-->微信
    Wechat4U-->微信
    XP-->微信

mermaid 常用于流程图的制作

大多数的 markdown 软件都支持 mermaid

jekyll 需要导入js才能支持 mermaid

希望能为jekyll启用这一强大的工具

Add proxy for gitbook

Since Gitbook is blocked in China sometimes or slowly to visit, we should add a proxy for gitbook sometime later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.