# Base dir set as docs, still checking root

**URL:** <https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172>\
**Category:** Support\
**Tags:** deployment\
**Created:** [June 17, 2020, 8:03pm UTC](https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172 "2020-06-17T20:03:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lieuwe-berg](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/lieuwe-berg/32/10446_2.png) [@lieuwe-berg](https://answers.netlify.com/u/lieuwe-berg)\
**Post date:** [June 17, 2020, 8:03pm UTC](https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172/1 "2020-06-17T20:03:36Z")

</div>

Hey all,

I have a repo with this file structure:  
 ![](https://global.discourse-cdn.com/netlify/original/2X/4/4e80dbd90bf0c1686b5449de79a820f25133f12a.png)

These are two sites. One is [example.com](http://example.com) and the other [docs.example.com](http://docs.example.com), the latter has the base directory set to docs. Though for some reason, the docs site still uses the netlify.toml that’s in the root of the repo. Can this be disabled/circumvented somehow?

edit: setting a custom build ignore per site would be a solution too, not sure if that’s possible though

---

<div class="post-metadata">

**Author:** ![jen](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jen/32/6044_2.png) [@jen](https://answers.netlify.com/u/jen)\
**Post date:** [June 19, 2020, 10:13pm UTC](https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172/2 "2020-06-19T22:13:35Z")

</div>

Hey @lieuwe-berg,  
Are you still running into this? And am I understanding that this is what you want:

- for the main site, ignore changes to the `docs/` directory and publish `public/`
- for the docs site, publish `docs/`

Just wanna confirm before advising further!

---

<div class="post-metadata">

**Author:** ![lieuwe-berg](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/lieuwe-berg/32/10446_2.png) [@lieuwe-berg](https://answers.netlify.com/u/lieuwe-berg)\
**Post date:** [June 20, 2020, 4:14pm UTC](https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172/4 "2020-06-20T16:14:32Z")

</div>

Yes, this is still a minor inconvenience.

The main site should ignore changes to the `docs/` directory and publish `build/` (it’s a react app). This all currently works fine. It uses this ignore command:  
`ignore = "git diff --quiet HEAD^ HEAD src/ public/ package.json netlify.toml"` (basically any files I may change, it continues only if src, public… are changed).

The docs site should publish `docs/` and ignore changes to the other files.

I noticed in the netlify deploy settings that base directory was not set, but publish directory was `docs/`. I went ahead and changed the base directory to `docs` and cleared publish, however now it just serves the repo instead (e.g. `docs.example.com/docs` would give the docs page, `.com/public` would give the html for the main site).

I assume this is not intended behavior?

---

<div class="post-metadata">

**Author:** ![lieuwe-berg](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/lieuwe-berg/32/10446_2.png) [@lieuwe-berg](https://answers.netlify.com/u/lieuwe-berg)\
**Post date:** [June 22, 2020, 12:04pm UTC](https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172/5 "2020-06-22T12:04:20Z")

</div>

Update: I appended a `.` after the publish directory, so it would display `docs/.` instead of “Not set” (which it’d default to if you only set the base directory). This seemed to fix it for me, it’s now publishing from docs/.

However, the original issue still persists. The docs site is picking up the netlify.toml from the root of the repo, and not looking for one in the base directory I set.

---

<div class="post-metadata">

**Author:** ![luke](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/luke/32/39_2.png) [@luke](https://answers.netlify.com/u/luke)\
**Post date:** [June 26, 2020, 6:35am UTC](https://answers.netlify.com/t/base-dir-set-as-docs-still-checking-root/17172/6 "2020-06-26T06:35:22Z")

</div>

In most cases, `netlify.toml` settings will override any/all other settings. Please consider this when adding settings to that file.

The `netlify.toml` in the base directory doesn’t currently set a base directory or publish directory.

In the publish directory itself (the subdirectory `docs`), there is no `netlify.toml` for the build system to read (as the screenshot above shows).

If there are other questions, please let us know.
