export declare const platformImportFromGithubMdxTemplate = "---\ntitle: \"Import from GitHub\"\ndescription: \"Paste a GitHub repository and let Doccupine's AI write a complete documentation site from your code.\"\ndate: \"2026-07-24\"\ncategory: \"Getting Started\"\ncategoryOrder: 0\norder: 2\nsection: \"Platform\"\n---\n# Import from GitHub\n\nInstead of starting from a blank project, you can point Doccupine at a GitHub repository and have it write the documentation for you. The AI reads your actual source code - not a template - and produces a complete, multi-page MDX site that is deployed and ready to edit.\n\nStart at [doccupine.com/import](https://doccupine.com/import) and paste any GitHub repository URL.\n\n\n Any of these formats work: `github.com/owner/repo`, the full `https://` URL, or just `owner/repo`.\n\n\n## How it works\n\n\n \n Enter the repo URL. If you're not signed in yet, you'll be sent to sign-up first - your repository is remembered, and the import starts on its own once your account is ready. Signing up starts your free 30-day trial and needs no credit card.\n \n \n Pick whether Doccupine manages the new documentation repository for you or creates it on your own GitHub account. This is the same choice described in [Creating a Project](/platform/creating-a-project).\n \n \n Use the AI credit included with your plan, or bring your own OpenAI, Anthropic, or Google API key. Whichever you pick becomes the new project's [AI setting](/platform/ai-assistant), so the import and every later Agent Sync run on it are funded the same way - you can change it afterwards.\n \n \n A live progress view walks through five stages: **Validate**, **Read repo**, **Plan**, **Write pages**, and **Publish**. You can close the tab - the import keeps running.\n \n \n When the run finishes you're taken straight to the new project, with the site already live.\n \n\n\n## What each stage does\n\n| Stage | What happens |\n| --------------- | ------------------------------------------------------------------------------------------- |\n| **Validate** | Confirms the repository exists and that Doccupine can read it |\n| **Read repo** | Downloads and scans the source files, selecting the ones that best describe the project |\n| **Plan** | Drafts the page outline - sections, titles, and ordering |\n| **Write pages** | Writes each page as MDX, validating every one before it ships |\n| **Publish** | Creates the repository, commits the docs, and deploys the site |\n\n## Private repositories\n\nPublic repositories work straight away. For a private one, connect your GitHub account first - Doccupine then reads the repo with your own credentials.\n\nIf you start an import on a repository Doccupine can't reach, the progress page offers a **Connect GitHub** button. Once you've connected, the import picks up automatically where it left off.\n\n## Cancelling an import\n\nWhile the run is still reading, planning, or writing, a **Cancel import** link is available on the progress page. Nothing has been created on GitHub or your hosting at that point, so cancelling leaves no trace behind.\n\nOnce the run reaches the publishing stage it can no longer be cancelled - by then the repository and deployment are being created.\n\n## Email notifications\n\nA full import can take a few minutes, so you don't have to sit and watch it. Doccupine emails you when the run finishes, with the page count and a link to your new site - or, if something went wrong after the repository was read, an email explaining why.\n\n## What you get\n\n- A **multi-page MDX site** with sections, categories, and navigation already filled in\n- Pages written from your real source files, not boilerplate\n- A **live deployment** you can visit immediately\n- Every page **linked back to the code it came from**, so [Agent Sync](/platform/self-updating-docs) can keep it current from day one\n\n\n Nothing about an imported site is locked down. Open any page in the [file editor](/platform/file-editor), change whatever you like, and [publish](/platform/publishing) as usual.\n\n\n## Limits\n\nDoccupine reads a bounded number of files and writes a bounded number of pages, so an enormous monorepo produces a solid starting set rather than an endless run. Very large or very sparse repositories may need a few manual pages afterwards.\n\n\n An import spends the same AI you configured for the project: your included credit, or your own provider key. On included credit it also stops at a per-import ceiling, so a large repository produces a solid starting set rather than consuming a month's budget. See [AI Assistant](/platform/ai-assistant).\n\n\n\n If your included AI credit has run out, the import is refused before anything is created - no project, no repository, nothing counted against your plan's project limit. Top up, or bring your own API key, and start it again.\n\n\n## After the import\n\n\n \n Rewrite, restructure, and add pages in the browser-based editor.\n \n \n Agent Sync rewrites pages when the code they document changes.\n \n";