-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New article for developer site upgrade (#18)
- Loading branch information
1 parent
b627f0c
commit 25ef908
Showing
10 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
109 changes: 109 additions & 0 deletions
109
_posts/2024-02-08-massive-upgrade-for-playcanvas-developer-site.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
author: will | ||
comments: false | ||
date: 2024-02-08 11:00:00+00:00 | ||
layout: post | ||
link: https://blog.playcanvas.com/massive-upgrade-for-the-playcanvas-developer-site/ | ||
slug: massive-upgrade-for-the-playcanvas-developer-site | ||
title: "Massive Upgrade for the PlayCanvas Developer Site" | ||
categories: | ||
- Announcement | ||
- News | ||
tags: | ||
- documentation | ||
- tutorial | ||
- open-source | ||
--- | ||
|
||
Today, we are excited to announce the brand new [PlayCanvas Developer Site](https://developer.playcanvas.com/) and [API Reference Manual](https://api.playcanvas.com/)! | ||
|
||
## Developer Site | ||
|
||
Let's start by taking a look at the new Developer Site, home of the PlayCanvas User Manual and Tutorials. | ||
|
||
![Developer Site Landing Page](/assets/media/developer-site-landing-page.png) | ||
|
||
### Migrating from Metalsmith to Docusaurus | ||
|
||
Since PlayCanvas was born in 2011, the basic look of the Developer Site has changed little. The content was written in Markdown and converted to a static HTML site using a tool called [Metalsmith](https://metalsmith.io/). Customizing the site to our needs meant we had to write many Metalsmith plugins (for localization, navigation and more) and a lot of HTML and CSS to style the pages as we wanted. | ||
|
||
13 years later, the world of static site generators has moved on with lots of exciting new options! We evaluated [Docusaurus](https://docusaurus.io/) and decided to migrate over to it. | ||
|
||
### What's New | ||
|
||
So what made Docusaurus so compelling? First up, the migration was going to be straightforward because, like Metalsmith, Docusaurus consumes Markdown and outputs a static site. And much of the customization we did for Metalsmith is supplied 'out-of-the-box' with Docusaurus. So that's all great. But the new site comes with lots of cool new features we known you're going to love: | ||
|
||
#### 🔍 Powerful Search | ||
|
||
The site now integrates [Algolia](https://www.algolia.com/) for advanced searching of the documentation. | ||
|
||
![Developer Site Search](/assets/media/developer-site-search.png) | ||
|
||
This is a quantum leap over what came before. Try it (by pressing `CTRL + K`) - you'll be amazed. 🤯 | ||
|
||
#### 🌒 Light and Dark Modes | ||
|
||
Easily switch between light and dark themes (by clicking on the sun/moon icon top-right). | ||
|
||
![Developer Site Light and Dark Modes](/assets/media/developer-site-light-dark.png) | ||
|
||
#### 🌏 Language Selection | ||
|
||
Switch language from the nav-bar. At the moment, we're shipping with Japanese translations. | ||
|
||
![Developer Site Localization](/assets/media/developer-site-localization.png) | ||
|
||
#### 👩💻 Edit on GitHub | ||
|
||
As you might expect, [the Developer Site is Open Source (MIT)](https://github.com/playcanvas/developer.playcanvas.com). Every page now has a handy link to the content on GitHub. Spot a mistake? Now can you fix it yourself and improve the docs for the community! | ||
|
||
#### 🧭 Easier Navigation | ||
|
||
At the top of each page, you'll find 'Sidebar Breadcrumbs' which allow you to click back up the page hierarchy. | ||
|
||
![Developer Site Breadcrumbs](/assets/media/developer-site-breadcrumbs.png) | ||
|
||
To the right of each page, you'll find a table of contents which can be a big help, especially for long pages. | ||
|
||
![Developer Site Table of Contents](/assets/media/developer-site-toc.png) | ||
|
||
And at the bottom of each page, you'll find 'Previous' and 'Next' links that allow you to read through the User Manual sequentially. | ||
|
||
![Developer Site Previous and Next Links](/assets/media/developer-site-previous-next.png) | ||
|
||
## API Reference | ||
|
||
We are not just launching a new Developer Site today. We are also launching our branch new, upgraded [API Reference Manual](https://api.playcanvas.com/)! | ||
|
||
![API Reference Site](/assets/media/api-reference-site.png) | ||
|
||
### Migrating from JSDoc to TypeDoc | ||
|
||
Since the start, we have relied on [JSDoc](https://jsdoc.app/) to generate our API reference manual. But since then, we have seen the introduction of [TypeDoc](https://typedoc.org/) which offers some major advantages over JSDoc. | ||
|
||
#### 🎨 High Quality Default Theme | ||
|
||
While it's not perfect, the default TypeDoc theme is gorgeous and a big improvement over our custom JSDoc theme. It provides: | ||
|
||
* Light and dark modes (like the main developer site) | ||
* Links to the source code on GitHub | ||
* Grouping of API into related categories | ||
* Powerful search (press `/` to activate it) | ||
* ...and much more! | ||
|
||
It's a great foundation for us to begin with and we can customize the default theme to our requirements as needed. | ||
|
||
#### 🔗 Easy Combining of APIs | ||
|
||
Did you know that PlayCanvas develops frameworks and libraries other than the PlayCanvas Engine? There's [PCUI](https://github.com/playcanvas/pcui), a front-end framework for web-based tools. There's the [PlayCanvas Editor API](https://github.com/playcanvas/editor-api) for automating the interface. And more! The new API reference collects all of the PlayCanvas APIs into a single manual. | ||
|
||
![API Reference Site APIs](/assets/media/api-reference-site-apis.png) | ||
|
||
## Open Source FTW | ||
|
||
Everything we are announcing today is 100% open source. | ||
|
||
* [Developer Site on GitHub](https://github.com/playcanvas/developer.playcanvas.com) | ||
* [API Reference Site on GitHub](https://github.com/playcanvas/api-reference) | ||
|
||
We want to empower to community to get involved and make PlayCanvas better for everybody. It's never been easier to submit your first pull request on GitHub. So why wait - get started today! ❤️ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.