Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
fix: move deno.land/x description under search (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Aug 9, 2020
1 parent 62653fc commit 868a5eb
Showing 1 changed file with 110 additions and 110 deletions.
220 changes: 110 additions & 110 deletions pages/x/index.tsx
Expand Up @@ -65,116 +65,6 @@ const ThirdPartyRegistryList = () => {
close={() => setOverlayOpen(false)}
/>
<div>
<div className="max-w-screen-xl mx-auto pt-4 pb-8 sm:pt-8 sm:pb-12 px-4 sm:px-6 lg:pt-12 lg:pb-16 lg:px-8">
<dl className="md:grid md:grid-cols-2 md:gap-8">
<div>
<div>
<dt className="text-lg leading-6 font-medium text-gray-900">
What is deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
<span className="font-semibold">deno.land/x</span> is a
hosting service for Deno scripts. It caches releases of
open source modules stored on GitHub and serves them at
one easy to remember domain.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
How do I use modules on deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500 break-words">
The basic format of code URLs is
<InlineCode>
https://deno.land/x/IDENTIFIER@VERSION/FILE_PATH
</InlineCode>
. If you leave out the version it will be defaulted to the
most recent version released for the module.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
How do I add a module to deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500 break-words">
Press the button below and follow the presented
instructions:
</p>
<span className="block w-full rounded-md shadow-sm mt-4">
<button
type="submit"
className="w-full flex justify-center py-2 px-4 border border-gray-300 text-md font-medium rounded-md text-gray-700 bg-gray-100 hover:text-gray-500 hover:bg-gray-50 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition duration-150 ease-in-out"
onClick={() => setOverlayOpen(true)}
>
Add a module
</button>
</span>
</dd>
</div>
</div>
<div className="mt-12 md:mt-0">
<div>
<dt
className="text-lg leading-6 font-medium text-gray-900"
id="warning"
>
I am getting a warning when importing from deno.land/x!
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
deno.land/x warns you when you are implicitly importing
the latest version of a module (when you do not explicitly
specify a version). This is because it can{" "}
<a
href="https://github.com/denoland/deno_website2/issues/997"
className="link"
>
be unsafe to not tag dependencies
</a>
. To get rid of the warning, explicitly specify a version.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
Can I find functionality built-in to Deno here?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
No, the built-in runtime is documented on{" "}
<a className="link" href="https://doc.deno.land/">
deno doc
</a>{" "}
and in the manual. See{" "}
<Link href="/[identifier]" as="/std">
<a className="link">/std</a>
</Link>{" "}
for the standard modules.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
Can I edit or remove a module on deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
Module versions are persistent and immutable. It is thus
not possible to edit or delete a module (or version), to
prevent breaking programs that rely on this module.
Modules may be removed if there is a legal reason to do
(for example copyright infringement).
</p>
</dd>
</div>
</div>
</dl>
</div>
<div className="max-w-screen-lg mx-auto px-4 sm:px-6 md:px-8 mt-8">
<label htmlFor="query" className="font-medium sr-only">
Search
Expand Down Expand Up @@ -472,6 +362,116 @@ const ThirdPartyRegistryList = () => {
</div>
)}
</div>
<div className="max-w-screen-xl mx-auto pt-4 pb-8 sm:pt-8 sm:pb-12 px-4 sm:px-6 lg:pt-12 lg:pb-16 lg:px-8">
<dl className="md:grid md:grid-cols-2 md:gap-8">
<div>
<div>
<dt className="text-lg leading-6 font-medium text-gray-900">
What is deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
<span className="font-semibold">deno.land/x</span> is a
hosting service for Deno scripts. It caches releases of
open source modules stored on GitHub and serves them at
one easy to remember domain.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
How do I use modules on deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500 break-words">
The basic format of code URLs is
<InlineCode>
https://deno.land/x/IDENTIFIER@VERSION/FILE_PATH
</InlineCode>
. If you leave out the version it will be defaulted to the
most recent version released for the module.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
How do I add a module to deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500 break-words">
Press the button below and follow the presented
instructions:
</p>
<span className="block w-full rounded-md shadow-sm mt-4">
<button
type="submit"
className="w-full flex justify-center py-2 px-4 border border-gray-300 text-md font-medium rounded-md text-gray-700 bg-gray-100 hover:text-gray-500 hover:bg-gray-50 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition duration-150 ease-in-out"
onClick={() => setOverlayOpen(true)}
>
Add a module
</button>
</span>
</dd>
</div>
</div>
<div className="mt-12 md:mt-0">
<div>
<dt
className="text-lg leading-6 font-medium text-gray-900"
id="warning"
>
I am getting a warning when importing from deno.land/x!
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
deno.land/x warns you when you are implicitly importing
the latest version of a module (when you do not explicitly
specify a version). This is because it can{" "}
<a
href="https://github.com/denoland/deno_website2/issues/997"
className="link"
>
be unsafe to not tag dependencies
</a>
. To get rid of the warning, explicitly specify a version.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
Can I find functionality built-in to Deno here?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
No, the built-in runtime is documented on{" "}
<a className="link" href="https://doc.deno.land/">
deno doc
</a>{" "}
and in the manual. See{" "}
<Link href="/[identifier]" as="/std">
<a className="link">/std</a>
</Link>{" "}
for the standard modules.
</p>
</dd>
</div>
<div className="mt-12">
<dt className="text-lg leading-6 font-medium text-gray-900">
Can I edit or remove a module on deno.land/x?
</dt>
<dd className="mt-2">
<p className="text-base leading-6 text-gray-500">
Module versions are persistent and immutable. It is thus
not possible to edit or delete a module (or version), to
prevent breaking programs that rely on this module.
Modules may be removed if there is a legal reason to do
(for example copyright infringement).
</p>
</dd>
</div>
</div>
</dl>
</div>
</div>
<Footer simple />
</div>
Expand Down

0 comments on commit 868a5eb

Please sign in to comment.