Explorar el Código

HUE-8888 [docs] Fix hue dependency path in the parser demo project

Note: still not compiling anymore https://github.com/cloudera/hue/issues/1212

Module not found: Error: Can't resolve 'sql/reference/typeUtils' in '/tmp/hue/desktop/core/src/desktop/js/parse/sql/hive'
Romain hace 5 años
padre
commit
524c489d07

+ 4 - 4
docs/docs-site/content/developer/components/er-diagram/_index.md

@@ -11,7 +11,7 @@ The [Entity-relationship model](https://en.wikipedia.org/wiki/Entity%E2%80%93rel
     events="entity-clicked:name"
 />}}
 
-### Import
+## Import
 
 Please refer [here](/developer/components/#using-ui-components-in-your-project) for importing the component in your own project. Also [er-diagram-demo](https://github.com/cloudera/hue/tree/master/tools/examples/components/er-diagram-demo) app have working examples.
 
@@ -19,18 +19,18 @@ Once imported `er-diagram` can be used like a native HTML tag.
 
     <er-diagram id="erd-element-id"/>
 
-### Attributes
+## Attributes
 
 - entities: Array &lt;[IEntity](https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/js/components/er-diagram/lib/interfaces.ts#L21)&gt; - An array of entity objects. Each entity will be a box in the UI.
 - relations: Array &lt;[IRelation](https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/js/components/er-diagram/lib/interfaces.ts#L26)&gt; - An array of relation objects. Each relation will connect two of the above entities.
 
 Please refer the [interfaces](https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/js/components/er-diagram/lib/interfaces.ts) for an idea on the structure of these objects.
 
-### Events
+## Events
 
 - entity-clicked: Function([IEntity](https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/js/components/er-diagram/lib/interfaces.ts#L21)) - Will be triggered when an entity is clicked.
 
-#### Resource Files
+### Resource Files
 
 - Hue
   - **Web Component:** gethue/web/er-diagram.js

+ 4 - 2
tools/examples/api/hue_dep/README.md

@@ -9,10 +9,12 @@
 In package.json there’s a dependency on Hue git project:
 
     "dependencies": {
-      "hue": "file:../../.."
+      "hue": "file:../../../.."
     },
 
-Note that it can also be a GitHub link: “hue”: "git://github.com/cloudera/hue.git” but takes a bit longer to do “npm install"
+Note that it can also be a GitHub link: "hue": "git://github.com/cloudera/hue.git" but takes a bit longer to do `npm install`.
+
+Output:
 
     { locations:
     [ { type: 'statement', location: [Object] },

+ 1 - 1
tools/examples/api/hue_dep/package.json

@@ -11,7 +11,7 @@
   "author": "Queso",
   "license": "ISC",
   "dependencies": {
-    "hue": "file:../../.."
+    "hue": "file:../../../.."
   },
   "devDependencies": {
     "@babel/cli": "^7.2.3",