在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JetBrains/kotlin-web-site开源软件地址(OpenSource Url):https://github.com/JetBrains/kotlin-web-site开源编程语言(OpenSource Language):JavaScript 34.8%开源软件介绍(OpenSource Introduction):Kotlin websiteThis repository is the source for https://kotlinlang.org. Website structureContent
Note that source files for the server-side landing page and Kotlin Multiplatform Mobile landing page are not publicly available. Sources in different repositoriesSource files for coroutine docs, and language specification are stored in separate repositories:
Auto-generated contentAPI reference documentation is generated based on comments in the Kotlin code. Learn more about documenting the Kotlin code. The Kotlin grammar reference is generated by the Kotlin grammar generator from the Kotlin grammar definition. Configuration files
TemplatesThe Kotlin website uses Jinja2 templates from the templates directory.
Note that all Markdown files, except for docs, are processed as Jinja templates before HTML conversion.
This allows using all Jinja benefits for Markdown (for example, building URLs with the ContributionYou can contribute to the Kotlin website by sending us a pull request. If you're going to propose a big change, discuss your idea with the team via [email protected]. For the Kotlin documentation, follow these guidelines on style and formatting. For other pages, follow the complete syntax reference at the kramdown site. You can also include metadata fields. Learn more in the Jekyll docs. Kotlin User GroupTo add a Kotlin User Group, proceed the following way:
You can see the structure and types of the expected configuration in the JSON schema. Once you publish a Pull Request, the changes will be validated by GitHub Actions Workflow to prevent misconfiguration. Community EventsTo add an event to the Community Events, follow the instruction below.
Local deploymentCurrently, there is no way to deploy the Kotlin website locally. This ticket tracks the effort of adding support for local testing: KT-47049. You can contribute to the Kotlin website by sending us a pull request. Feedback and issuesYou can:
Pages on Next.jsYou can find all pages in the "pages" directory. Projects Structure
Images in Next.jsNotice that using 'next/image' is not possible because Next.js does not support importing images to HTML files (SSG). Use Img and Svg components from "next-optimized-images" instead. TestsWe use Playwright for writing e2e and Screenshot tests. See https://playwright.dev/ for more details. PrerequirementsTo run tests locally:
Run Tests
Write TestsTo write e2e test: Create spec file /test/e2e/your-page.spec.js |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论