# Publish public documentation and a knowledge base

- Check 21.08 · SaaS and B2B SEO · Important
- Source: https://checklist-seo-geo.com/en/saas-b2b-seo/publish-public-documentation-knowledge-base
- Make your documentation and help center public, indexable and well structured on Docusaurus, Mintlify, GitBook, Zendesk, WordPress, or under /docs via a proxy.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/saas-b2b-seo/publish-public-documentation-knowledge-base.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Product documentation and the knowledge base (help center) explain how to use the software, article by article. When public and indexable, they answer the “how do I do X in [product]” questions asked of Google and AI assistants, and let prospects check a feature without requesting a demo. Once this check is done, every useful article that is not tied to a customer account is accessible without logging in, rendered as HTML, listed in a sitemap, and the property that hosts it is tracked in Search Console.

## Why it matters

Many searches around a piece of software are usage questions: “Planifia export schedule Excel”, “Planifia add a technician”, “Planifia sync Google Calendar”. Customers ask them, but so do prospects who want to know whether something can be done before buying. If the documentation sits behind a login, these queries lead to forums, old videos or nothing at all.

AI assistants are increasingly asked how to use software. When they search the web, public documentation, structured as short articles that each answer one question, is the most direct source. Closed documentation pushes them to guess, or to cite an outdated third-party source. Several documentation platforms also produce `llms.txt` files and Markdown versions of their pages; these formats remain experimental and their use by engines is not established.

Documentation is also proof: it shows what the product actually does, its prerequisites and its limits, better than a sales page.

## What it improves

- **Long tail**: hundreds of precise usage queries, often with no competition.
- **AI assistant answers**: an official source for “how to” and “is it possible” questions. No guarantee of citation.
- **Pre-sales**: prospects check a feature or an integration for themselves.
- **Support**: fewer tickets on documented questions.
- **Rankings**: an effect specific to each article; good documentation does not, on its own, make sales pages rank.

## How to check

**1. Are the articles public?** Open an article in a private window, without being logged in. Then:

```bash
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" https://docs.example.com/planning/exporter-excel
```

A `200` is expected. A `302` to a login page or a `401`/`403` means the article is closed.

**2. Is the content in the HTML?**

```bash
curl -s https://docs.example.com/planning/exporter-excel | grep -c "Exporter le planning"
```

Zero occurrences while the sentence is visible in the browser: the article is rendered client-side; check it with the Search Console URL Inspection tool.

**3. Are the indexing directives correct?**

```bash
curl -s https://docs.example.com/planning/exporter-excel | grep -i -E '<meta name="robots"|rel="canonical"'
curl -s https://docs.example.com/robots.txt
```

No `noindex` on articles, a canonical pointing to the public URL, no `Disallow` on the documentation.

**4. Does Search Console cover the documentation?** A Domain property (`example.com`) includes every subdomain, `docs.example.com` among them. With a URL-prefix property `https://www.example.com/`, a documentation subdomain is not tracked.

## How to implement

The examples follow Planifia, a fictional vendor. `docs-origin.example.net` stands for the documentation's origin host.

### Before you start

**What should be public.** Everything that explains the product: getting started, features, integrations, administration, common troubleshooting, release notes. What stays private: internal procedures, information specific to one customer, articles that expose a vulnerability or sensitive data. See [make public pages accessible without logging in](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/make-public-pages-accessible-without-logging).

**Subdomain or subdirectory.** `docs.example.com` and `example.com/docs/` both work; Google documents no ranking preference between them. The subdirectory makes it easier to track everything within a single set of URLs and to link with the commercial site; it requires a reverse proxy if the documentation tool is hosted elsewhere (Nginx, Apache, Cloudflare, Vercel and Next.js sections). The choice matters mostly for stability: decide once, then do not change URLs again without a redirect plan.

**Shared editorial rules:**

- **One article per question**, with a title phrased as the task: “Export the schedule to Excel”.
- **The answer first**: one or two sentences saying whether it is possible and in which plan, then the numbered steps.
- **Prerequisites and limits** at the top: plan, required permissions, mobile app version.
- **Captioned screenshots** with descriptive alt text, and the button labels written out in full.
- **A real update date** on every article.
- **Links** to the corresponding feature page and to related articles.
- **Stable URLs**: `/planning/exporter-excel`, not an identifier that changes with every tool migration.

**Internal search and versions.** The documentation's search results pages must not be indexed. See [handle internal search results with no SEO value](https://checklist-seo-geo.com/en/indexing-canonicalization/handle-internal-search-results-no-seo-value). For versioned documentation, let the current version be indexed and deindex or canonicalize the old ones.

### Docusaurus

The sitemap plugin is included in `@docusaurus/preset-classic`. Configure the public URL, the base path and the exclusion of old versions in `docusaurus.config.js`:

```js
// docusaurus.config.js
module.exports = {
  url: 'https://example.com',
  baseUrl: '/docs/',
  trailingSlash: false,
  presets: [
    [
      '@docusaurus/preset-classic',
      {
        docs: {
          routeBasePath: '/',
          lastVersion: 'current',
          versions: {
            current: { label: '3.x' },
            '2.x': { noIndex: true, banner: 'unmaintained' },
          },
        },
        sitemap: {
          lastmod: 'date',
          ignorePatterns: ['/docs/tags/**', '/docs/search'],
        },
      },
    ],
  ],
};
```

`url` and `baseUrl` must match the public address, including behind a proxy: they are used to build the canonicals and the sitemap. Do not turn on the site-level `noIndex` option, which deindexes everything and removes the sitemap. Run `npm run build`, then check `build/sitemap.xml`.

### Mintlify

Mintlify automatically generates `/llms.txt`, `/llms-full.txt` and a Markdown version of each page. In the dashboard, configure the custom domain (`docs.example.com`); to serve the documentation under `example.com/docs`, follow the subdirectory procedure in the Mintlify documentation, which relies on a reverse proxy (see the Cloudflare, Vercel or Nginx sections). Then check that no public page is protected by authentication and that the sitemap responds on the final domain.

### GitBook

In the published site's settings, under `Audience`, choose “Public”: the private share link and authenticated access options close the documentation to search engines. GitBook also publishes `/llms.txt`, `/llms-full.txt` and a Markdown version of each page (add `.md` to the URL). Configure a custom domain so that the URLs belong to your domain.

### Zendesk

In Zendesk Guide, each article has a visibility setting: “Everyone” or a user segment (for example signed-in users). Only articles visible to everyone can be indexed. Also check the setting that requires signing in to access the whole help center: if it is on, nothing is public. The help center exposes a sitemap, usually at `/hc/sitemap.xml`: check it on your domain and submit it in Search Console. The same checks apply to Intercom, HubSpot or Freshdesk help centers: article visibility, custom domain, sitemap.

### WordPress

Versions: WordPress 6.4 to 7.1; Yoast SEO 20 and later or Rank Math 1.0.x.

For a knowledge base on WordPress, use a dedicated post type or a knowledge base plugin, with a URL such as `/aide/categorie/article/`. Check in Yoast SEO or Rank Math that the post type and its categories are indexable and included in the sitemap, and that internal search results pages are set to `noindex`.

### Nginx

Versions: Nginx 1.18 and later.

To serve documentation hosted elsewhere under `example.com/docs/`, add the following to the site's `server` block, for example in `/etc/nginx/sites-available/example.com`:

```nginx
location /docs/ {
    proxy_pass https://docs-origin.example.net/docs/;
    proxy_ssl_server_name on;
    proxy_set_header Host docs-origin.example.net;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
```

```bash
sudo nginx -t && sudo systemctl reload nginx
```

Configure the documentation tool so that it generates its links, canonicals and sitemap with `https://example.com/docs/`. Then block indexing of the origin (`docs-origin.example.net`) or redirect it, to avoid two copies.

### Apache

Versions: Apache 2.4.

Enable `mod_proxy`, `mod_proxy_http` and `mod_ssl` (`sudo a2enmod proxy proxy_http ssl`), then in the virtual host:

```apache
SSLProxyEngine on
ProxyPreserveHost Off

<Location "/docs/">
    ProxyPass "https://docs-origin.example.net/docs/"
    ProxyPassReverse "https://docs-origin.example.net/docs/"
</Location>
```

```bash
sudo apachectl configtest && sudo systemctl reload apache2
```

`ProxyPass` directives do not work in an `.htaccess` file: on shared hosting, prefer a `docs.example.com` subdomain pointed at the documentation tool.

### Cloudflare

Versions: Cloudflare Workers, all plans (Free plan included), dashboard as of November 2026.

A Worker can serve the documentation under `/docs/` without touching the server. Create it in [Workers & Pages](https://dash.cloudflare.com/?to=/:account/workers-and-pages):

```js
export default {
  async fetch(request) {
    const url = new URL(request.url);
    const upstream = new URL(url.pathname + url.search, 'https://docs-origin.example.net');

    return fetch(new Request(upstream, request));
  },
};
```

In the Worker, open `Settings > Domains & Routes > Add > Route`, choose your zone and enter the route `example.com/docs/*`. Test with the `curl` commands from the “How to check” section, then purge the cache if an old version is served.

### Vercel

Versions: `vercel.json` file, all Vercel plans, November 2026.

If the commercial site is on Vercel, declare a rewrite in `vercel.json`:

```json
{
  "rewrites": [
    { "source": "/docs", "destination": "https://docs-origin.example.net/docs" },
    { "source": "/docs/:path*", "destination": "https://docs-origin.example.net/docs/:path*" }
  ]
}
```

### Next.js

Versions: Next.js 15 and 16 (App Router and Pages Router).

With a Next.js site hosted somewhere other than Vercel, the same rewrite is declared in `next.config.js` (or in the object exported by `next.config.ts`, the file `create-next-app` creates by default):

```js
// next.config.js
module.exports = {
  async rewrites() {
    return [
      { source: '/docs', destination: 'https://docs-origin.example.net/docs' },
      { source: '/docs/:path*', destination: 'https://docs-origin.example.net/docs/:path*' },
    ];
  },
};
```

### After going live

- **Submit the documentation's sitemap** in Search Console and Bing Webmaster Tools, or declare it in `robots.txt`.
- **Link** each feature and integration page to its documentation article, and vice versa. See [create pages for actual integrations](https://checklist-seo-geo.com/en/saas-b2b-seo/create-pages-actual-integrations).
- **Let through the AI crawlers** you have chosen to allow: check that the documentation platform's firewall does not block them. See [test HTTP responses for each crawler](https://checklist-seo-geo.com/en/ai-crawler-access-data-policy/test-http-responses-each-crawler).
- **Measure**: usage queries in Search Console, tickets avoided, most viewed articles before a trial request.
- **Evaluate `llms-full.txt`** only if you have an identified use for it. See [evaluate llms-full.txt for documentation](https://checklist-seo-geo.com/en/llmstxt-ai-formats-experimental/evaluate-llms-fulltxt-documentation).

## Common mistakes

- **All documentation behind the customer login** “just in case”, getting-started articles included.
- **A help center on a subdomain missing from Search Console**: no visibility into its performance or its errors.
- **Two indexable copies**: the proxy origin and the public URL.
- **Canonicals pointing to the origin host** after a move to a subdirectory.
- **Switching documentation tools without redirects**: every URL changes, and links from support and from assistants break.
- **Video-only or PDF-only articles**, with no written steps.
- **Outdated articles** describing the old interface, with no date.

## Frequently asked questions

### Should software documentation be public?

Yes, for everything that explains the product: getting started, features, integrations, administration and common troubleshooting. Public documentation answers the “how to” queries of customers and prospects, serves as an official source for AI assistants and reduces support tickets. Keep private the internal procedures, information specific to one customer and articles that would expose a security vulnerability.

### Should documentation live on a subdomain or in a subdirectory?

Both work: Google documents no ranking preference between docs.example.com and example.com/docs. The subdirectory makes linking with the commercial site easier but requires a reverse proxy if the documentation tool is hosted elsewhere. The subdomain is simpler to set up. What matters is to choose once, track the whole domain in Search Console and never change URLs again.

### Does documentation need an llms.txt file?

It is not necessary, and its effect has not been demonstrated. The llms.txt file remains an experimental proposal, and the main engines do not document using it. Platforms such as Mintlify and GitBook generate it automatically, which costs nothing. Elsewhere, give priority to public articles, rendered as HTML, listed in the sitemap and accessible to the crawlers you have chosen to allow.

### Why does my Zendesk help center not appear in Google?

First check article visibility: only articles visible to everyone can be indexed, not those reserved for signed-in users. Then check that the help center does not require signing in, that its domain is covered by a Search Console property, and that its sitemap has been submitted. Finally, inspect a few URLs in Search Console to spot a robots.txt block or a noindex directive.

## Resources

- [Google Search Central: SEO Starter Guide](https://developers.google.com/search/docs/fundamentals/seo-starter-guide?hl=en)
- [Search Console Help: add a website property](https://support.google.com/webmasters/answer/34592?hl=en)
- [Docusaurus: sitemap plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-sitemap) and [docs plugin, versions](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs)
- [Mintlify: llms.txt](https://www.mintlify.com/docs/ai/llmstxt)
- [GitBook: LLM-ready docs](https://gitbook.com/docs/publishing-documentation/llm-ready-docs) and [publish a docs site](https://gitbook.com/docs/publishing-documentation/publish-a-docs-site)
- [Zendesk: getting started with the help center](https://support.zendesk.com/hc/en-us/articles/4408846795674)
- [Nginx: proxy module](https://nginx.org/en/docs/http/ngx_http_proxy_module.html) and [Apache: mod_proxy](https://httpd.apache.org/docs/2.4/mod/mod_proxy.html)
- [Cloudflare: Workers routes](https://developers.cloudflare.com/workers/configuration/routing/routes/) and [Vercel: rewrites](https://vercel.com/docs/routing/rewrites)

Next steps: [publish API documentation if applicable](https://checklist-seo-geo.com/en/saas-b2b-seo/publish-api-documentation-if-applicable) and [publish a changelog](https://checklist-seo-geo.com/en/saas-b2b-seo/publish-changelog).
