PrismJS
Docusaurus
PrismJS | Docusaurus | |
---|---|---|
59 | 282 | |
12,051 | 53,209 | |
0.8% | 1.7% | |
0.0 | 9.5 | |
about 1 month ago | 5 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PrismJS
-
My OpenSource Blog that You Can Use Right Now
For Code highlighting, I am using Prism.js. First I am loading the styles file inside the _app.tsx file and inside the CodeBlock component, I am loading the styling that gives us beautiful syntax highlights.
-
Build a simple code editor
Luckily, implementing syntax highlighting in our simple code editor is easy with the use of external libraries. There are several JavaScript libraries available, such as Prism and Highlight.js. For our editor, we'll use Prism since it's easy to use and supports a wide range of programming languages.
-
To learn svelte, I clone Github's issues page including useful features that you might consider reusing.
🌈 Prismjs Code highlighting, use it with Marked
-
Code Reading Docusaurus
I'm trying to implement the new feature in a similar way, but not exactly the same, so my plan is going to modify unwrapMdxCodeBlocks function and apply Prism to highlight the code blocks.
-
GDScript (Godot) syntax highlighting in Obsidian?
Hey all, I've been taking notes as I learn Godot engine, using the Editor Syntax Highlight plugin, but it doesn't show highlighting in edit mode unlike how it does for other languages. I read on a forum somewhere that this plugin/Obsidian uses [PrismJS](https://github.com/PrismJS/prism/issues) for syntax highlighting, which has gdscript on its list of supported languages, yet it doesn't work. Any help would be appreciated thank you!
-
Blog in django
I tend to use https://prismjs.com/ on my blog. On the website you click which languages you want to support (e.g. Python, JavaScript, ...) and get a custom set of CSS and JS files which you load into your template. Code than has to be wrapped in
-
How should i go about making a library to color code (syntax highlighting) a user has written?
Or this one for csharp which is more complex https://github.com/PrismJS/prism/blob/master/components/prism-csharp.js
-
What is the proper language markup type we should use for a MakeFile code snippet?
I believe Obsidian utilizes PrismJS as its default syntax highlighter for code blocks.
-
Sveltekit prismjs
I have a problem with using PrismJS with SvelteKit. I can get the basic languages to work like javascript, but I can't load additional ones using the loadLanguages function, because of the Vite (or at least I think that is the problem). Is there any way to load additional languages highlighting? I am also using tailwind css and flowbite-svelte.
-
Nextra 2 – Next.js Static Site Generator
Prismjs was replaced by Shiki and rehype-pretty-code.
Docusaurus
-
Alternatives to Docusaurus for product documentation
Docusaurus is a popular open-source documentation tool primarily designed for product documentation and other technical documentation needs. It was first released in 2017 by Facebook Open Source (now Meta Open Source). Just recently, Docsaurus version 3.0 was released.
-
Docusaurus doesn't recognize brackets {} on the markdown files
// @ts-check // `@type` JSDoc annotations allow editor autocompletion and type checking // (when paired with `@ts-check`). // There are various equivalent ways to declare your Docusaurus config. // See: https://docusaurus.io/docs/api/docusaurus-config import { themes as prismThemes } from "prism-react-renderer"; /** @type {import('@docusaurus/types').Config} */ const config = { title: "My Site", tagline: "Dinosaurs are cool", url: "https://your-docusaurus-test-site.com", baseUrl: "/", onBrokenLinks: "throw", onBrokenMarkdownLinks: "warn", favicon: "img/favicon.ico", organizationName: "facebook", // Usually your GitHub org/user name. projectName: "docusaurus", // Usually your repo name. presets: [ [ "docusaurus-preset-openapi", /** @type {import('docusaurus-preset-openapi').Options} */ ({ docs: { sidebarPath: require.resolve("./sidebars.js"), // Please change this to your repo. editUrl: "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/", }, blog: { showReadingTime: true, // Please change this to your repo. editUrl: "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/", }, theme: { customCss: require.resolve("./src/css/custom.css"), }, }), ], ], themeConfig: /** @type {import('docusaurus-preset-openapi').ThemeConfig} */ ({ navbar: { title: "My Site", logo: { alt: "My Site Logo", src: "img/logo.svg", }, items: [ { type: "doc", docId: "intro", position: "left", label: "Tutorial", }, { to: "/api", label: "API", position: "left" }, { to: "/blog", label: "Blog", position: "left" }, { href: "https://github.com/facebook/docusaurus", label: "GitHub", position: "right", }, ], }, footer: { style: "dark", links: [ { title: "Docs", items: [ { label: "Tutorial", to: "/docs/intro", }, ], }, { title: "Community", items: [ { label: "Stack Overflow", href: "https://stackoverflow.com/questions/tagged/docusaurus", }, { label: "Discord", href: "https://discordapp.com/invite/docusaurus", }, { label: "Twitter", href: "https://twitter.com/docusaurus", }, ], }, { title: "More", items: [ { label: "Blog", to: "/blog", }, { label: "GitHub", href: "https://github.com/facebook/docusaurus", }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, }), }; export default config;
- Looking for open source documentation generator
-
Show HN: A Python-based static site generator using Jinja templates
Facebook's React/Markdown SSG docusaurus does those things: https://docusaurus.io/
Though you may have to use a plugin for responsive images: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-id...
- Craft Your GitHub Profile Page in 60 Seconds with Zero Code, Absolutely Free
-
Top 5 Open-Source Documentation Development Platforms of 2024
Docusaurus is an open-source static site generator built on React and has emerged as a popular tool for developing and maintaining product documentation. Its ease of use, extensive features, and robust community support make it a compelling choice for many organizations.
-
No CMS? Writing Our Blog in React
Wondering why Docusaurus (https://docusaurus.io) did not match their needs. Works perfectly fine as a blogging engine for our tech blog.
-
Best Software Documentation Tools
This is developed by Meta. You can create really nice-looking documentation websites super fast.
-
Can Git or any other VCS be used as a database instead of SQL/NoSQL ones? Have you ever seen such a thing?
Docusaurus, a documentation tool by Facebook, hosts a showcase of other websites that use Docusaurus on their Homepage. The list of websites of this showcase is a typescript files that is maintained by Docusaurus devs, and that you can add your website to through PR: https://github.com/facebook/docusaurus/blob/main/website/src/data/users.tsx
-
Community project: PreventRansomware.io
Fix "Edit this page" links at the bottom of each doc (Problem with the Docusaurus build I guess)
What are some alternatives?
Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.
nextra - Simple, powerful and flexible site generation framework with everything you love from Next.js.
tailwindcss-typography - Beautiful typographic defaults for HTML you don't control.
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.
shiki - A beautiful yet powerful syntax highlighter
oauth2-proxy - A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
JSDoc - An API documentation generator for JavaScript.
Javascript Left-Right Parser - Parser for JavaScript
VuePress - 📝 Minimalistic Vue-powered static site generator
ace - Ace (Ajax.org Cloud9 Editor)
MkDocs - Project documentation with Markdown.