Sfoglia il codice sorgente

fix(docs): Fix inconsistent naming of admin-ui dir in examples

Michael Bromley 4 anni fa
parent
commit
6bc33b4134

+ 1 - 1
docs/content/plugins/extending-the-admin-ui/adding-ui-translations/_index.md

@@ -76,7 +76,7 @@ The Admin UI ships with language files only for English and Spanish as of versio
         AdminUiPlugin.init({
           port: 3002,
           app: compileUiExtensions({
-            outputPath: path.join(__dirname, '../__admin-ui'),
+            outputPath: path.join(__dirname, '../admin-ui'),
             extensions: [{
                translations: {
                  de: path.join(__dirname, 'translations/de.json'),

+ 2 - 2
docs/content/plugins/extending-the-admin-ui/admin-ui-theming-branding/_index.md

@@ -47,7 +47,7 @@ You can replace the Vendure logos and favicon with your own brand logo:
       plugins: [
         AdminUiPlugin.init({
           app: compileUiExtensions({
-            outputPath: path.join(__dirname, '__admin-ui'),
+            outputPath: path.join(__dirname, 'admin-ui'),
             extensions: [
               setBranding({
                 // The small logo appears in the top left of the screen  
@@ -91,7 +91,7 @@ Much of the visual styling of the Admin UI can be customized by providing your o
       plugins: [
         AdminUiPlugin.init({
           app: compileUiExtensions({
-            outputPath: path.join(__dirname, '__admin-ui'),
+            outputPath: path.join(__dirname, 'admin-ui'),
             extensions: [{
               globalStyles: path.join(__dirname, 'my-theme.scss')
             }],

+ 2 - 2
docs/content/plugins/extending-the-admin-ui/using-angular/_index.md

@@ -88,7 +88,7 @@ export const config: VendureConfig = {
     AdminUiPlugin.init({
       port: 5001,
       app: compileUiExtensions({
-        outputPath: path.join(__dirname, '__admin-ui'),
+        outputPath: path.join(__dirname, 'admin-ui'),
         extensions: [{
           extensionPath: path.join(__dirname, 'ui-extensions'),
           ngModules: [{
@@ -106,7 +106,7 @@ export const config: VendureConfig = {
 
 ## 5. Start the server to compile
 
-The `compileUiExtensions()` function returns a `compile()` function which will be invoked by the AdminUiPlugin upon server bootstrap. During this compilation process, a new directory will be generated at `/__admin-ui` (as specified by the `outputPath` option) which will contains the uncompiled sources of your new Admin UI app.
+The `compileUiExtensions()` function returns a `compile()` function which will be invoked by the AdminUiPlugin upon server bootstrap. During this compilation process, a new directory will be generated at `/admin-ui` (as specified by the `outputPath` option) which will contains the un-compiled sources of your new Admin UI app.
 
 Next, these source files will be run through the Angular compiler, the output of which will be visible in the console.
 

+ 2 - 2
docs/content/plugins/extending-the-admin-ui/using-other-frameworks/_index.md

@@ -84,7 +84,7 @@ export const config: VendureConfig = {
     AdminUiPlugin.init({
       port: 3002,
       app: compileUiExtensions({
-        outputPath: path.join(__dirname, '../__admin-ui'),
+        outputPath: path.join(__dirname, '../admin-ui'),
         extensions: [{
           // Points to the path containing our Angular "glue code" module
           extensionPath: path.join(__dirname, 'ui-extension/modules'),
@@ -124,7 +124,7 @@ To ensure things are working we can now build our React app by running `yarn bui
 
 Once build, we can start the Vendure server.
 
-The `compileUiExtensions()` function returns a `compile()` function which will be invoked by the AdminUiPlugin upon server bootstrap. During this compilation process, a new directory will be generated at `/__admin-ui` (as specified by the `outputPath` option) which will contains the uncompiled sources of your new Admin UI app.
+The `compileUiExtensions()` function returns a `compile()` function which will be invoked by the AdminUiPlugin upon server bootstrap. During this compilation process, a new directory will be generated at `/admin-ui` (as specified by the `outputPath` option) which will contains the un-compiled sources of your new Admin UI app.
 
 Next, these source files will be run through the Angular compiler, the output of which will be visible in the console.