3ae48af67c
This PR starts putting in place the high-level changes we want to make to the docs site. - It makes separate sections for Reference and Examples and Community. - Gets rid of the secondary sidebar and integrates it into the main sidebar. - Groups the reference articles by type. - Pulls in the examples alongside code and a live playground so people don't have to visit examples.tldraw.com separately. <img width="1458" alt="Screenshot 2024-01-30 at 09 43 46" src="https://github.com/tldraw/tldraw/assets/469604/4f5aa339-3a69-4d9b-9b9f-dfdddea623e8"> Again, this is the top-level changes and there's more to be done for the next PR(s): - create quick start page - clean up installation page - add accordion to Examples page prbly - put fun stuff in header (from footer) - landing page - something for landing page of API - search cmd-k and border - cleanup _sidebarReferenceContentLinks - external links _blank - address potential skew issue with code examples - have a link to other examples (next.js, etc.) ### Change Type - [x] `documentation` — Changes to the documentation only[^2] ### Test Plan 1. Make sure examples work! ### Release Notes - Rework our docs site to pull together the examples app and reference section more cohesively. --------- Co-authored-by: Taha <98838967+Taha-Hassan-Git@users.noreply.github.com> Co-authored-by: Steve Ruiz <steveruizok@gmail.com> Co-authored-by: Mitja Bezenšek <mitja.bezensek@gmail.com> Co-authored-by: alex <alex@dytry.ch> Co-authored-by: Lu Wilson <l2wilson94@gmail.com> Co-authored-by: Dan Groshev <git@dgroshev.com>
90 lines
4.3 KiB
XML
90 lines
4.3 KiB
XML
import { Header } from '@/components/Header'
|
|
import { Sidebar } from '@/components/Sidebar'
|
|
import { getDb } from '@/utils/ContentDatabase'
|
|
|
|
export default async function LicensePage() {
|
|
const db = await getDb()
|
|
const sidebar = await db.getSidebarContentList({})
|
|
|
|
return (
|
|
<>
|
|
<Header />
|
|
<Sidebar {...sidebar} />
|
|
<main className="article">
|
|
<div className="page-header">
|
|
<h1>tldraw License</h1>
|
|
</div>
|
|
<p>
|
|
This License governs use of the accompanying Software, and your use of the Software
|
|
constitutes acceptance of this license.
|
|
</p>
|
|
<p>
|
|
You may use this Software for any non-commercial purpose, subject to the restrictions in
|
|
this license. Some purposes which can be non- commercial are teaching, academic research,
|
|
and personal experimentation.
|
|
</p>
|
|
<p>
|
|
You may not use or distribute this Software or any derivative works in any form for
|
|
commercial purposes. Examples of commercial purposes would be running business operations,
|
|
licensing, leasing, or selling the Software, distributing the Software for use with
|
|
commercial products or for internal products within commercial entities, or otherwise
|
|
using the Software in any way that provides you with a commercial benefit.
|
|
</p>
|
|
<p>To purchase an alternative license for commercial use, contact hello@tldraw.com.</p>
|
|
<p>
|
|
Subject to your compliance with the restrictions and obligations in this License, you may
|
|
modify this Software and distribute the modified Software for non-commercial purposes,
|
|
however, you may not grant rights to the Software or derivative works that are broader
|
|
than those provided by this License. For example, you may not distribute modifications of
|
|
the Software under terms that provide a commercial benefit to you, permit commercial use,
|
|
or under terms that purport to require the Software or derivative works to be sublicensed
|
|
to others.
|
|
</p>
|
|
<p>In return for these conditions of use, you agree:</p>
|
|
<p>Not to remove any copyright or other notices from the Software.</p>
|
|
<p>
|
|
That if you distribute the Software in source or object form, you will include a verbatim
|
|
copy of this license.
|
|
</p>
|
|
<p>
|
|
That if you distribute derivative works of the Software in source code form you do so only
|
|
under a license that includes all of the provisions of this License, and if you distribute
|
|
derivative works of the Software solely in object form you must make the source code form
|
|
available upon request and do so only under a license that complies with this License.
|
|
</p>
|
|
<p>
|
|
That that the word "tldraw" shall not be used to refer to any derivative works of the
|
|
Software except in the phrase "Based on the tldraw library (https://tldraw.com)", provided
|
|
such phrase is not used to promote the derivative works or to imply that tldraw endorses
|
|
you or the derivative works.
|
|
</p>
|
|
<p>
|
|
THAT THE SOFTWARE COMES "AS IS", WITH NO WARRANTIES. THIS MEANS NO EXPRESS, IMPLIED OR
|
|
STATUTORY WARRANTY, INCLUDING WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
|
FOR A PARTICULAR PURPOSE OR ANY WARRANTY OF TITLE OR NON-INFRINGEMENT. ALSO, YOU MUST PASS
|
|
THIS DISCLAIMER ON WHENEVER YOU DISTRIBUTE THE SOFTWARE OR DERIVATIVE WORKS.
|
|
</p>
|
|
<p>
|
|
THAT TLDRAW WILL NOT BE LIABLE FOR ANY DAMAGES RELATED TO THE SOFTWARE OR THIS LICENSE,
|
|
INCLUDING DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL OR INCIDENTAL DAMAGES, TO THE MAXIMUM
|
|
EXTENT THE LAW PERMITS, NO MATTER WHAT LEGAL THEORY IT IS BASED ON. ALSO, YOU MUST PASS
|
|
THIS LIMITATION OF LIABILITY ON WHENEVER YOU DISTRIBUTE THE SOFTWARE OR DERIVATIVE WORKS.
|
|
</p>
|
|
<p>
|
|
That if you sue anyone over patents that you think may apply to the Software or anyones
|
|
use of the Software, your license to the Software ends automatically.
|
|
</p>
|
|
<p>That your rights under the License end automatically if you breach it in any way.</p>
|
|
<p>tldraw reserves all rights not expressly granted to you in this license.</p>
|
|
<hr />
|
|
<p>
|
|
Questions? Email <a href="mailto:hello@tldraw.com">hello@tldraw.com.</a>
|
|
</p>
|
|
<hr />
|
|
<p>
|
|
Questions or concerns? Email <a href="mailto://hello@tldraw.com">hello@tldraw.com.</a>
|
|
</p>
|
|
</main>
|
|
</>
|
|
)
|
|
}
|