Kaynağa Gözat

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

Michael Bromley 4 yıl önce
ebeveyn
işleme
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({
         AdminUiPlugin.init({
           port: 3002,
           port: 3002,
           app: compileUiExtensions({
           app: compileUiExtensions({
-            outputPath: path.join(__dirname, '../__admin-ui'),
+            outputPath: path.join(__dirname, '../admin-ui'),
             extensions: [{
             extensions: [{
                translations: {
                translations: {
                  de: path.join(__dirname, 'translations/de.json'),
                  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: [
       plugins: [
         AdminUiPlugin.init({
         AdminUiPlugin.init({
           app: compileUiExtensions({
           app: compileUiExtensions({
-            outputPath: path.join(__dirname, '__admin-ui'),
+            outputPath: path.join(__dirname, 'admin-ui'),
             extensions: [
             extensions: [
               setBranding({
               setBranding({
                 // The small logo appears in the top left of the screen  
                 // 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: [
       plugins: [
         AdminUiPlugin.init({
         AdminUiPlugin.init({
           app: compileUiExtensions({
           app: compileUiExtensions({
-            outputPath: path.join(__dirname, '__admin-ui'),
+            outputPath: path.join(__dirname, 'admin-ui'),
             extensions: [{
             extensions: [{
               globalStyles: path.join(__dirname, 'my-theme.scss')
               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({
     AdminUiPlugin.init({
       port: 5001,
       port: 5001,
       app: compileUiExtensions({
       app: compileUiExtensions({
-        outputPath: path.join(__dirname, '__admin-ui'),
+        outputPath: path.join(__dirname, 'admin-ui'),
         extensions: [{
         extensions: [{
           extensionPath: path.join(__dirname, 'ui-extensions'),
           extensionPath: path.join(__dirname, 'ui-extensions'),
           ngModules: [{
           ngModules: [{
@@ -106,7 +106,7 @@ export const config: VendureConfig = {
 
 
 ## 5. Start the server to compile
 ## 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.
 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({
     AdminUiPlugin.init({
       port: 3002,
       port: 3002,
       app: compileUiExtensions({
       app: compileUiExtensions({
-        outputPath: path.join(__dirname, '../__admin-ui'),
+        outputPath: path.join(__dirname, '../admin-ui'),
         extensions: [{
         extensions: [{
           // Points to the path containing our Angular "glue code" module
           // Points to the path containing our Angular "glue code" module
           extensionPath: path.join(__dirname, 'ui-extension/modules'),
           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.
 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.
 Next, these source files will be run through the Angular compiler, the output of which will be visible in the console.