help: Make include a sibling of content/docs directory.

When moving content between the include files and the docs files while
copy pasting them, there was a need to change the imports everytime
this was done. This was inconvenient to do.

We considered path aliases to solve this problem but not all editors
support path resolution via those aliases and thus we change the
directory structure instead.

We change imports for components, include files and images in this
commit.

See
https://chat.zulip.org/#narrow/channel/19-documentation/topic/confused.20about.20include.20file
for more info.
This commit is contained in:
Shubham Padia
2025-09-26 11:23:16 +00:00
committed by Tim Abbott
parent 3b1f4a9d09
commit 8ddc7bee00
375 changed files with 734 additions and 918 deletions

View File

@@ -329,4 +329,13 @@ export default defineConfig(
"import/unambiguous": "off",
},
},
{
files: ["starlight_help/src/content/include/*"],
rules: {
// We need to turn off this rule since we want import statements
// to be easily copy-paste-able between content/include and
// content/docs.
"import/no-useless-path-segments": "off",
},
},
);