example.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>Filebase docs — Quickstart</title>
  7. <style>
  8. :root {
  9. --bg: #fafaf9; --fg: #1c1b1a; --muted: #6b6964; --border: #e6e4e0;
  10. --accent: #c96442; --surface: #ffffff; --code-bg: #f4f4f2;
  11. }
  12. * { box-sizing: border-box; }
  13. body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 -apple-system, system-ui, sans-serif; }
  14. .topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; }
  15. .topbar .brand { font-weight: 600; }
  16. .topbar input { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); width: 280px; font: inherit; background: var(--bg); }
  17. .layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 0; min-height: calc(100vh - 50px); }
  18. @media (max-width: 1024px) { .layout { grid-template-columns: 220px 1fr; } .toc { display: none; } }
  19. @media (max-width: 720px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } }
  20. .sidebar { padding: 24px 16px; border-right: 1px solid var(--border); overflow-y: auto; font-size: 14px; }
  21. .sidebar .group { margin-bottom: 22px; }
  22. .sidebar .group-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 0 8px 8px; }
  23. .sidebar a { display: block; color: var(--fg); text-decoration: none; padding: 5px 8px; border-radius: 6px; }
  24. .sidebar a:hover { background: var(--surface); }
  25. .sidebar a.active { background: var(--accent); color: white; }
  26. article { padding: 40px 56px 80px; max-width: 760px; }
  27. .crumbs { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
  28. h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 12px; }
  29. .lede { color: var(--muted); font-size: 17px; margin: 0 0 32px; }
  30. h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
  31. h3 { font-size: 16px; margin: 24px 0 8px; }
  32. p { margin: 12px 0; }
  33. code { font-family: ui-monospace, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
  34. pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.55; }
  35. pre code { background: transparent; padding: 0; }
  36. .callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 20px 0; font-size: 14px; }
  37. .callout .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
  38. .toc { padding: 40px 24px 24px; font-size: 13px; border-left: 1px solid var(--border); }
  39. .toc .toc-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
  40. .toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
  41. .toc a.active { color: var(--accent); font-weight: 500; }
  42. .pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
  43. .pager a { flex: 1; text-decoration: none; color: var(--fg); padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
  44. .pager a small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
  45. </style>
  46. </head>
  47. <body>
  48. <header class="topbar" data-od-id="topbar">
  49. <span class="brand">◰ Filebase docs</span>
  50. <input placeholder="Search · ⌘K" />
  51. </header>
  52. <div class="layout">
  53. <nav class="sidebar" data-od-id="sidebar">
  54. <div class="group">
  55. <div class="group-label">Getting started</div>
  56. <a href="#" class="active">Quickstart</a>
  57. <a href="#">Concepts</a>
  58. <a href="#">Authentication</a>
  59. </div>
  60. <div class="group">
  61. <div class="group-label">Sync engine</div>
  62. <a href="#">Block-level deltas</a>
  63. <a href="#">Conflict resolution</a>
  64. <a href="#">Resumable uploads</a>
  65. </div>
  66. <div class="group">
  67. <div class="group-label">CLI</div>
  68. <a href="#">Install</a>
  69. <a href="#">Configuration</a>
  70. <a href="#">Subcommands</a>
  71. </div>
  72. </nav>
  73. <article data-od-id="article">
  74. <div class="crumbs">Docs › Getting started › Quickstart</div>
  75. <h1>Quickstart</h1>
  76. <p class="lede">Sync your first folder in under five minutes. The CLI is the fastest path; the desktop app and the API client all wrap the same engine.</p>
  77. <h2 id="install">1. Install the CLI</h2>
  78. <p>The CLI is distributed as a single binary for macOS, Linux, and Windows.</p>
  79. <pre><code># macOS · Homebrew
  80. brew install filebase
  81. # Linux · curl
  82. curl -fsSL https://get.filebase.dev | sh</code></pre>
  83. <p>Verify the install:</p>
  84. <pre><code>filebase --version
  85. # filebase 0.6.4</code></pre>
  86. <h2 id="auth">2. Authenticate</h2>
  87. <p>Sign in with your Filebase account. The token is stored in <code>~/.config/filebase/credentials</code>.</p>
  88. <pre><code>filebase auth login
  89. # → opens your browser
  90. # ✓ Logged in as you@example.com</code></pre>
  91. <div class="callout">
  92. <div class="label">Note</div>
  93. On servers without a browser, use <code>filebase auth login --device</code> for a device-code flow.
  94. </div>
  95. <h2 id="sync">3. Sync a folder</h2>
  96. <p>Pick a local directory and link it to a remote root. Filebase watches it for changes and pushes block-level diffs in the background.</p>
  97. <pre><code>cd ~/projects
  98. filebase init my-team
  99. filebase sync</code></pre>
  100. <h3>Excluding files</h3>
  101. <p>Add a <code>.filebaseignore</code> at the root of the synced folder. Same syntax as <code>.gitignore</code>:</p>
  102. <pre><code>node_modules/
  103. *.log
  104. build/</code></pre>
  105. <h2 id="next">4. Where to go next</h2>
  106. <p>Read <a href="#">Conflict resolution</a> to understand how Filebase merges concurrent edits, or skip to the <a href="#">CLI reference</a> for the full subcommand list.</p>
  107. <div class="pager">
  108. <a href="#"><small>← Previous</small>Concepts</a>
  109. <a href="#" style="text-align: right;"><small>Next →</small>Conflict resolution</a>
  110. </div>
  111. </article>
  112. <aside class="toc" data-od-id="toc">
  113. <div class="toc-label">On this page</div>
  114. <a href="#install" class="active">1. Install the CLI</a>
  115. <a href="#auth">2. Authenticate</a>
  116. <a href="#sync">3. Sync a folder</a>
  117. <a href="#next">4. Where to go next</a>
  118. </aside>
  119. </div>
  120. </body>
  121. </html>