mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
committed by
Tim Abbott
parent
3b1f4a9d09
commit
8ddc7bee00
@@ -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",
|
||||
},
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user