GithubHelp home page GithubHelp logo

yanarp / deno_website2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from denoland/dotland

0.0 1.0 0.0 29.34 MB

deno.land website

Home Page: https://deno.land/

CSS 4.77% JavaScript 1.92% TypeScript 93.31%

deno_website2's Introduction

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/master/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).

deno_website2's People

Contributors

acathur avatar adrai avatar anandchowdhary avatar axetroy avatar bartlomieju avatar brandonkal avatar denjucks avatar eliassjogreen avatar fakoua avatar garronej avatar hayd avatar hyperupcall avatar justjavac avatar kidonng avatar ksxgithub avatar lemarier avatar lucacasonato avatar nayeemrmn avatar ngot avatar parzhitsky avatar rjoydip avatar rsp avatar rubiin avatar ry avatar ryo-ma avatar srackham avatar trivikr avatar vslinko avatar yeukfei02 avatar zhmushan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.