Skip to content

moncefplastin07/deno_website2

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 41 commits ahead, 484 commits behind denoland:main.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

deno_website2

Build Status

This is the code for https://deno.land/

This website consists of two parts

  1. A Cloudflare Worker
  2. A Next.js app hosted on Vercel

We want to provide pretty and semantic URLs for modules that will be used within Deno. For example: https://deno.land/std/http/server.ts

When we request this file inside of Deno, we need to receive back the raw content of the file. However, when we visit that URL in the browser we want to see a pretty HTML file with syntax highlighting.

To accomplish this the Cloudflare Worker looks at the "Accept:" HTTP header to see if the client wants HTML or not. If it does want HTML, we simply proxy the request to Vercel. (We use Vercel because of their nice GitHub integration.)

History

This is a rewrite of the Deno website it will combine the code in https://github.com/denoland/deno/tree/f96aaa802b245c8b3aeb5d57b031f8a55bb07de2/website and https://github.com/denoland/registry and have faster deployment.

This is written in React / TailwindCSS / Vercel / CloudFlare Workers. Not in Deno. Ideally this could be ported to Deno at some point but we are in need of a new website and dogfooding takes too long. We hope to see this code ported to Deno with minimal developer flow interrupted (in particular, we need the ability to listen for FS events and reload the web server).

Image License

These Deno images are distributed under the MIT license (public domain and free for use).

About

deno.land website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 89.8%
  • CSS 9.5%
  • JavaScript 0.7%