TopGit theo dõi hasura/gatsby-gitbook-starter trên GitHub, đã đạt 992 sao. Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Kick off your project with this starter to create a powerful/flexible docs/tutorial web apps.
Motivation
We wanted to create a GraphQL tutorial series. The content would be written by developers for various languages/frameworks and what better than writing it in Markdown! And since this is a tutorial series we also needed rich embeds, syntax highlighting and more customisations.
We also wanted to serve these tutorials in sub paths of learn.hasura.io. To serve all these requirements, we decided to use Gatsby + MDX (Markdown + JSX) to extend markdown and used a neat consistent theme like the one at GitBook and deployed as docker containers.
🔥 Features
Write using Markdown / MDX
GitBook style theme
Syntax Highlighting using Prism [Bonus: Code diff highlighting]
Search Integration with Algolia
Progressive Web App, Works Offline
Google Analytics Integration
Automatically generated sidebar navigation, table of contents, previous/next
Dark Mode toggle
Edit on Github
Fully customisable
Rich embeds and live code editor using MDX
Easy deployment: Deploy on Netlify / Now.sh / Docker
Open config.js for templating variables. Broadly configuration is available for gatsby, header, sidebar and siteMetadata.
gatsby config for global configuration like
pathPrefix - Gatsby Path Prefix
siteUrl - Gatsby Site URL
gaTrackingId - Google Analytics Tracking ID
header config for site header configuration like
title - The title that appears on the top left
githubUrl - The Github URL for the docs website
helpUrl - Help URL for pointing to resources
tweetText - Tweet text
links - Links on the top right
search - Enable search and configure Algolia
sidebar config for navigation links configuration
forcedNavOrder for left sidebar navigation order. It should be in the format "/<filename>"
frontLine - whether to show a front line at the beginning of a nested menu.(Collapsing capability would be turned of if this option is set to true)
links - Links on the bottom left of the sidebar
ignoreIndex - Set this to true if the index.md file shouldn't appear on the left sidebar navigation. Typically this can be used for landing pages.
siteMetadata config for website related configuration
title - Title of the website
description - Description of the website
ogImage - Social Media share og:image tag
docsLocation - The Github URL for Edit on Github
For sub nesting in left sidebar, create a folder with the same name as the top level .md filename and the sub navigation is auto-generated. The sub navigation is alphabetically ordered.
Algolia Configuration
To setup Algolia, go to config.js and update the search object to look like the one below:
Values for Algolia App ID, Search Key, and Admin Key can be obtained from Algolia Dashboard with the right set of permissions. Replace MY_INDEX_NAME with the Algolia Index name of your choice. To build the Algolia index, you need to run npm run build which will do a gatsby build along with content indexing in Algolia.
Progressive Web App, Offline
To enable PWA, go to config.js and update the pwa object to look like the one below:
"pwa": {
"enabled": false, // disabling this will also remove the existing service worker.
"manifest": {
"name": "Gatsby Gitbook Starter",
"short_name": "GitbookStarter",
"start_url": "/",
"background_color": "#6b37bf",
"theme_color": "#6b37bf",
"display": "standalone",
"crossOrigin": "use-credentials",
icons: [
{
src: "src/pwa-512.png",
sizes: `512x512`,
type: `image/png`,
},
],
},
}
Live Code Editor
To render react components for live editing, add the react-live=true to the code section. For example:
<button>Edit my text</button>
In the above code, just add javascript react-live=true after the triple quote ``` to start rendering react components that can be edited by users.
🤖 SEO friendly
This is a static site and comes with all the SEO benefits. Configure meta tags like title and description for each markdown file using MDX Frontmatter
---
title: "Title of the page"
metaTitle: "Meta Title Tag for this page"
metaDescription: "Meta Description Tag for this page"
---
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/hasura/gatsby-gitbook-starter là nguồn chính thức.
hasura/gatsby-gitbook-starter có bao nhiêu sao?
hasura/gatsby-gitbook-starter có 992 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/hasura/gatsby-gitbook-starter. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
hasura/gatsby-gitbook-starter có phải mã nguồn mở không?
Có — hasura/gatsby-gitbook-starter phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/hasura/gatsby-gitbook-starter.
hasura/gatsby-gitbook-starter còn đang phát triển không?
Commit gần nhất trên hasura/gatsby-gitbook-starter là 1.5 năm trước (theo timestamp GitHub). Repo có 361 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
hasura/gatsby-gitbook-starter dùng license gì?
hasura/gatsby-gitbook-starter phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
hasura/gatsby-gitbook-starter là gì?
hasura/gatsby-gitbook-starter (hasura/gatsby-gitbook-starter) là dự án JavaScript trên GitHub. Theo mô tả gốc: Generate GitBook style modern docs/tutorial websites using Gatsby + MDX
hasura/gatsby-gitbook-starter viết bằng ngôn ngữ gì?
hasura/gatsby-gitbook-starter chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
gatsby-gitbook-starter có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về gatsby-gitbook-starter.