AsciiDoc: "Unresolved directive in ... include:: ..." when rendering .adoc file in Firefox with Asciidoctor.js Live Preview - asciidoc

Using the Firefox Add-on "Asciidoctor.js Live Preview" I get the output
Unresolved directive in Summary.adoc - include::a.adoc[]
Unresolved directive in Summary.adoc - include::b.adoc[]
when rendering an AsciiDoc source file containing
include::a.adoc[]
include::b.adoc[]

I found that Firefox prevented the extension from including the files. To circumvent this behaviour:
open the Firefox configuration with the URL about:config
find the parameter security.fileuri.strict_origin_policy
set the value of this parameter to false
With this setting I succeeded in rendering the file.

Related

Vapor `Public` directory inside docker image is not exposed

I'm running Vapor 4.3 and Leaf with Xcode on my Mac without any issues.
public directory middleware is enabled:
let fileMW = FileMiddleware(publicDirectory: directory)
app.middleware.use(fileMW)
as soon as I build the image using the default dockerfile and run it on the docker, the css and all image files are not loaded anymore.
Note: the dockerfile is the exact same one that came with the vapor new command. (Updated to the date of the writing this post)
Safari shows this error:
[Error] Did not parse stylesheet at 'http://127.0.0.1/styles/index.css' because non CSS MIME types are not allowed in strict mode.
Chrome shows this warning:
Resource interpreted as Stylesheet but transferred with MIME type text/plain: "http://127.0.0.1/styles/index.css".
What am I missing?
Looks like it is a case sensitivity issue! Mac has no problem finding files with this issue but Linux not!
⚠️ Even if you already set: app.routes.caseInsensitive = true, it will not affect your resources requests.
So make sure you have set all paths exactly as they appear in pwd command.

Sass failing to compile - Web Essentials 2013 Update 4 "Unable to find resource"

Does anybody have an idea, what causes the following error?
23.07.2015 17:48:14: SCSS: Compiling widgetmain.scss
23.07.2015 17:48:14: Looking for resource # http://localhost.:55559/
23.07.2015 17:48:14: Looking for resource # http://localhost.:55559/
23.07.2015 17:48:15: Looking for resource # http://localhost.:55559/
23.07.2015 17:48:15: Looking for resource # http://localhost.:55559/
23.07.2015 17:48:15: Looking for resource # http://localhost.:55559/
23.07.2015 17:48:16: Looking for resource # http://localhost.:55559/
23.07.2015 17:48:16: Unable to find resource, aborting
It occurs when I save a scss file. It occurs even when I clear the file completely. That's why I did not post any source code. The port number changes every time.
When I open the compiled view of the file it shows:
/*
Compilation Error occurred (see error list to navigate to the error location):
*/
I already reinstalled Web Essentials, but I had no luck.
Windows Solution:
Open up your command prompt and try to ping localhost. (with dot at the end).
If you can ping localhost. you can go ahead an open up your system control. Type 'proxy' into the search box and click on 'configure proxyserver'.
Go to the tab 'Connections' -> Lan-Properties -> uncheck everything and press Ok.
PS.: If you can't ping localhost. you have another problem. Try to fix that first (like fixing your host file).
Try to compile now. This solution worked for me.
Hope it helps.
According to https://github.com/madskristensen/WebEssentials2013/issues/1914 #efepuntomarcos's information, I add "localhost." (that has a dot at the end) into the proxy ignore list in IE, that also fix this problem and maintains IE's function.

Atom.io: Change default syntax highlighting

I want my Atom.io opens "template.cshtml" files as html files.
I installed package "file-types"
and add to my config.cson as:
http://screencast.com/t/ABSsERh3gj52
But I see my templates.cshtml as early.
Please help me with config.cson
Have you checked out language-cshtml, it's an atom package meant directly at cshtml files which adds styntax highlighting.

How to create a link to external file section with Sphinx?

I want to create a link that refers to a section defined in another file.
I have found a similar question on "Python-Sphinx: Link to Section in external File" and I noticed there is an extension called "intersphinx".
So I tried this extension, but it doesn't work (Probably my usage is wrong).
I have tried the following.
conf.py
extensions = ['sphinx.ext.todo', 'sphinx.ext.intersphinx']
...
intersphinx_mapping = {'myproject': ('../build/html', None)}
foo.rst
...
****************
Install Bar
****************
Please refer :ref:`Bar Installation Instruction<myproject:bar_installation>`
I want to create a link like 'Bar Installation Instruction' with above markup.
bar.rst
...
**************************
Installation Instruction
**************************
.. _bar_installation:
some text...
When I run make html, I get the following warning and the link is not created.
foo.rst: WARNING: undefined label: myproject:bar_installation (if the link has no caption the label must precede a section header)
Thanks in advance.
Looks like it's not able to find your mapping inventory file. The first part of the tuple serves as the base URL for your links while the second part is the path to the inventory file. I believe the auto downloading of the inventory files (when you pass None) only works with URIs and not file paths.
In this example, I can build the documentation locally, but it will link to http://example.com/docs/bar.html
'myproject': (
'http://example.com/docs/',
'../html/objects.inv'
)

Can't find variable: StageWebViewBridge

I use the development tools:Adobe Flash Builder 4.6;
When I move the 'ExampleCallBackFuncions?.html' to an online server and try to load it using:
webView.loadURL("http://192.168.1.101/MapTest/ExampleBasic.html");
The html page appears but when I press the callAS3Function button I get the following error:
ReferenceError?: Can't find variable: StageWebViewBridge? callAs3Funciton at http://www.myserver.com/ExampleCallBackFuncions.html : 14
onclick at http://www.myserver.com/ExampleCallBackFuncions.html : 27
Create flex mobile project is how to interact with , and I can not always interact?
Thanks;
You need to include the project:
http://code.google.com/p/stagewebviewbridge/
It seems the file StageWebViewBridge.js is missing.
When we use stagewebviewbridge, we should include StageWebViewBridge.js file in our .html file, because, though the .js file we can make communication between as3 and js. So you could include the .js file location in your .html file.
You better to have the .js file as part of your [ MapTest ] directory, or refer .js from http://code.google.com/p/stagewebviewbridge/

Resources