Comments (4)
from instant-articles-builder.
from instant-articles-builder.
Hi @eythel - is this happening on Windows or in another OS?
from instant-articles-builder.
I think I found the problem. You are missing the "Article" element. I made a few changes, and while not perfect (it is missing the article published date and is picking up the video in the header as an image), it should be a good starting point:
{
"generator_name": "facebook-instant-articles-builder",
"generator_version": "0.2.2",
"rules": [{
"class": "TextNodeRule"
}, {
"class": "GlobalRule",
"selector": "html",
"properties": {
"article.title": {
"attribute": "content",
"selector": "h1",
"type": "element"
},
"author.name": {
"selector": ".jeg_meta_author a",
"type": "string"
},
"image.url": {
"attribute": "poster",
"selector": "div.jeg_feature_video_wrapper video",
"type": "string"
},
"article.body": {
"attribute": "content",
"selector": ".content-inner",
"type": "element"
},
"article.canonical": {
"attribute": "href",
"selector": "link[rel=canonical]",
"type": "string"
}
}
}, {
"class": "BlockquoteRule",
"selector": "blockquote"
}, {
"class": "ParagraphRule",
"selector": "p"
}, {
"class": "H2Rule",
"selector": "h2"
}, {
"class": "H1Rule",
"selector": "h1"
}, {
"class": "ListElementRule",
"selector": "ol, ul"
}, {
"class": "ListItemRule",
"selector": "li"
}, {
"class": "AnchorRule",
"selector": "a",
"properties": {
"anchor.href": {
"attribute": "href",
"selector": "a",
"type": "string"
}
}
}, {
"class": "ItalicRule",
"selector": "i"
}, {
"class": "EmphasizedRule",
"selector": "em"
}, {
"class": "BoldRule",
"selector": "b, strong"
}, {
"class": "ImageRule",
"selector": "img",
"properties": {
"image.url": {
"attribute": "src",
"selector": "img",
"type": "string"
},
"image.caption": {
"attribute": "src",
"selector": "img",
"type": "element"
}
}
}, {
"class": "IgnoreRule",
"selector": "img.rimg_cn,div.jeg_post_tags"
}]
}
I am closing the issue now, compatriota, but feel free to reopen this one if it does not work.
from instant-articles-builder.
Related Issues (20)
- Issues Running on Windows HOT 2
- Issue with preview HOT 2
- Display IA SDK Warnings HOT 1
- Optimize the preview and source code views
- Sign the release zip file to prevent warnings on Windows
- IA Builder Doesn't Save Progress After Tutorial
- Websites Not IA Compatible
- Show different message for Preview HOT 1
- Support customization of preview webserver
- Move away from using BrowserWindow for source view
- Display preview logo
- Support webserver cache invalidation
- git clone failure - Clone succeeded, but checkout failed. HOT 2
- الكلام أثناء النوم ماهي أسبابه ؟
- نشرة أخبار كوربيديا .. ارتفاع أسعار الذهب في مصر و فيتش بالإمارات
- preview issue (HTTP 500)
- 怪獸部落LitoMon 佛跳牆澎派美味四喜貓罐 [星部瑪]
- Enable PHP cross-compile when is building the APP
- Webserver error: Please check if the server is running.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instant-articles-builder.