From 4e2de40f9af5e86604db0644667a999127a86f42 Mon Sep 17 00:00:00 2001 From: Elijah Quartey Date: Wed, 8 Nov 2023 09:10:41 -0600 Subject: [PATCH 1/2] chore: adjusted pub ignore for docs --- packages/amplify_core/.pubignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify_core/.pubignore b/packages/amplify_core/.pubignore index a2e6bd485b..68f200e6ac 100644 --- a/packages/amplify_core/.pubignore +++ b/packages/amplify_core/.pubignore @@ -1 +1 @@ -doc/ +doc/api/* From 9ca6d5e892df6cd6f69de15d558f6b47d1fa29a8 Mon Sep 17 00:00:00 2001 From: Elijah Quartey Date: Wed, 8 Nov 2023 11:57:39 -0600 Subject: [PATCH 2/2] chore: restricted ignore --- packages/amplify_core/.pubignore | 7 ++++++- packages/amplify_core/dartdoc_options.yaml | 4 ++-- packages/amplify_core/doc/{ => static}/auth.md | 0 packages/amplify_core/doc/{ => static}/favicon.png | Bin 4 files changed, 8 insertions(+), 3 deletions(-) rename packages/amplify_core/doc/{ => static}/auth.md (100%) rename packages/amplify_core/doc/{ => static}/favicon.png (100%) diff --git a/packages/amplify_core/.pubignore b/packages/amplify_core/.pubignore index 68f200e6ac..dfbf4d4789 100644 --- a/packages/amplify_core/.pubignore +++ b/packages/amplify_core/.pubignore @@ -1 +1,6 @@ -doc/api/* +# Ignore +doc/* + +# Allow +!doc/lib/* +!doc/static/* diff --git a/packages/amplify_core/dartdoc_options.yaml b/packages/amplify_core/dartdoc_options.yaml index 0db369166c..121c023b70 100644 --- a/packages/amplify_core/dartdoc_options.yaml +++ b/packages/amplify_core/dartdoc_options.yaml @@ -1,10 +1,10 @@ dartdoc: categories: "Auth": - markdown: doc/auth.md + markdown: doc/static/auth.md categoryOrder: - Auth - favicon: doc/favicon.png + favicon: doc/static/favicon.png nodoc: - lib/src/config/analytics/** - lib/src/config/api/** diff --git a/packages/amplify_core/doc/auth.md b/packages/amplify_core/doc/static/auth.md similarity index 100% rename from packages/amplify_core/doc/auth.md rename to packages/amplify_core/doc/static/auth.md diff --git a/packages/amplify_core/doc/favicon.png b/packages/amplify_core/doc/static/favicon.png similarity index 100% rename from packages/amplify_core/doc/favicon.png rename to packages/amplify_core/doc/static/favicon.png