百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

solid-docs-legacy

> 编程语言
开源

SolidJS 和相关包的旧文档,已由 https://GitHub.com/solidjs/solid-docs-next 取代

190 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

SolidJS 和相关包的旧文档,已由 https://GitHub.com/solidjs/solid-docs-next 取代

For contributing new content, head to the new docs project!

Solid Docs

This is documentation for SolidJS v1.0.0 and associated Solid packages and projects. You can find more information about Solid and all its documentation at https://solidjs.com/.

Translations

Solid's documentation is available in 10 languages:

Language API Documentation Guides Tutorials Contributors
French (fr) 100% 100% 0% xstevenyung
Italian (it) 100% 100% 0% davedbase, Nusakan,
Portuguese (pt) 100% 100% 0% candidosales
Chinese (zh-cn) 100% 100% 100% Gavin-Gong
Japanese (ja) 100% 100% 100% jay-es
Spanish (es) 10% 0% 0% jnfrati, augusto1024
Indonesian (id) 100% 100% 0% athif23
German (de) 100% 100% 100 atk
Russian (ru) 100% 100% 100% Pheianox, TheFedaikin, nairabrab, Norskeld
Korean (ko-kr) 100% 100% 100% LechuckRoh

Support

We would love contributions to our documentation. Writing clear, concise, and easy-to-translate documentation for a project like Solid can be tricky. It takes a community to make this possible. We encourage you to submit translations and edits as PRs and to join the #docs channel on the Solid Discord. A style guide and roadmap will be coming soon.

To start a translation project, create a folder with the language code in the langs folder of the project and copy English docs from the en folder. File structures must be maintained and content should be a direct translation without additions or modification of the original material. Kindly submit your contributions as PRs. A Solid team member and other native speakers of your language will have an opportunity to review your work before it's merged into the main branch.

If you feel the documentation is missing anything important, please feel free to open an issue or submit a modifying PR.

Language READMEs

Each language folder has a README.md file that lets you know what changes have been made to the English documentation since the language has been updated. The tables are automatically updated using markdown-magic when a commit is made to the main branch. Note that the READMEs are only updated on the main branch.

(If you create a new language folder, it will automatically get a README.md file when the PR is merged.)

These READMEs are also a place for translation maintainers to write any notes about their translation.

Building

This package serves to build the markdown files into a consumable format imported by solid-site.

Run yarn build to run the build script. This compiles the markdown into various json files in the dist folder and turns the index.ts file into an entry point that accesses them. Then, to view your changes in the context of the site, clone both repositories and run yarn link in the solid-docs directory and yarn link @solid.js/docs in the solid-site directory.

After linking, run yarn watch in solid-docs to recompile your changes as you make them. Note that adding a new language or a new tutorial directory for a language that didn't have one won't trigger the watcher; run yarn build first.

Theming

The script mentioned above uses shiki to process the code which in turn uses VSCode tokens. Therefore any VSCode theme can be applied.

All you have to do is retrieve the JSON file describing your favorite theme (see ./build/github-light.json for an example), paste it into the build folder and refer to it in the fetchReleases.ts file around line 158: const theme = await loadTheme(resolve(__dirname, 'your-theme.json'));.

Importing Docs and Tutorials

This section probably won't be relevant unless you're working on solid-site. The package exposes async functions to load the documentation using dynamic imports.

typescript
getSupported(resourcePath: string, lang?: string)

Takes a resource path and returns a list of language codes that support that resource. If passed a language code, it will return true if that language supports the resource.

javascript
getSupported('tutorials/async_lazy'); //[ 'de', 'en', 'ja', 'ru', 'zh-cn' ]
getSupported('guides/comparison', 'fr'); // true

Resource paths follow the directory structure of the language folders. Currently, there are guide resources (guides/name), tutorial resources (tutorials/name), and the API resource (api).

typescript
getAllResourcePaths(lang: string): Promise

Returns a list of all resource paths for a given language.

typescript
getGuides(lang: string): Promise>

Takes a language code and returns an array of metadata for all supported guides. The array is sorted by the sort number in the guide metadata.

typescript
getDoc(lang: string, resource: string): Promise

Takes a language code matching a langs subdirectory and a resource name and returns a documentation file (see src/types.ts) if it exists. Use this to get the compiled output for all resources except tutorials.

typescript
getTutorial(lang: string, lesson: string): Promise

Takes a language code and a lesson name and returns a lesson file if it exists. Each tutorial file has the lesson code files (the starting state of the code editor); the solved files, which show up when the user clicks the Solve button; and the lesson markdown itself.

Lesson names come from a lang folder's tutorials/directory.json file which can be imported using the following function.

typescript
getTutorialDirectory(lang: string): Promise

Returns the directory object for language if it provides tutorials.

Thank You

Translating Solid's documentation into many languages helps our community grow internationally. Thank you to all our supporters and contributors who help maintain Solid Docs.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdocumentationsolid

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言