LESS - USING [ ] statements - css

I would like to use the following code in a LESS file -
.chevron_btn.[aria-expanded="true"]{
but it produces an error when compiled - is it possible to implement?

Remove the extra .:
.chevron_btn[aria-expanded="true"]{

Related

Using filterConfig.yml with DocFX

I am new to DocFx and I am trying to configure DocFx to filter out DataSet information from a project and no matter how I enter it - it just doesn't work.
The filterConfig.yml file has the following entries:
apiRules:
- exclude:
uidRegex: '^PhoenixControls\.Data\.AirStationDataSet'
- exclude
uidRegex: '^PhoenixControls\.Data\.ProductionOrderData'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ReferenceDataSet'
Running docfx docfx.json --serve
Serves up the following error:
Error Message
If I remove two of the -excludes - It will not error out - but it doesn't remove the objects I am trying to filter out.
What is the magic I need to perform to get object to filter out of DocFx?
There is a missing trailing ':' in line 5.
apiRules:
- exclude:
uidRegex: '^PhoenixControls\.Data\.AirStationDataSet'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ProductionOrderData'
- exclude:
uidRegex: '^PhoenixControls\.Data\.ReferenceDataSet'
Give VS Code with the YAML exension a try to edit YAML. It will highlight such mistakes:

Tsickle says "Error No inputs were found in config file" if I call it with tsconfig.json in a different directory

Calling tsickle with
tsickle --externs=target/externs.js -- -p target/src
I get this error:
Error No inputs were found in config file 'target/src/tsconfig.json'. Specified 'include' paths were '["./my/pathes/**/*.ts"]' and 'exclude' paths were '["some/other/thing"]'.
Why? Considering that tsickle is only a wrapper around tsc, if I do an equivalent tsc call, it happens without any problem. Something must go bad in the tsickle-tsc interaction, but what?
According to this Github issue, there is some incompatibility between tsickle and the typescript.
The probable reason can be that neither side want to admit that it is their mistake, thus none of them wants to fix it.
The solution is this: either the tsconfig.json given to the tsickle should have an absolute path, or the include: in this tsconfig.json should use an absolute path.
Considering that the .json format is not a very configurable thing (for example, you simply can't give an include: [ __dirname + '/my/lib/**.ts' ] setting in it), the probably better option is to simply give an absolute path to the tsickle.
In my case, I simply extended an arguments: ['-p', 'src/tsconfig.json'] in my Gruntfile to arguments: ['-p', __dirname + 'src/tsconfig.json']. If you use a different build tool, your actual solution my differ from it, but it is the important part.

gitbook editor kaTex expected comma after expression

This is the error information:
The following is my book.json:
{
"plugins": ["katex"]
}
The following is my error file:
I just can't figure out what's wrong with the math expression.
It looks like the math expression is ok, at least it works perfectly with KaTeX for browsers
$$S_{N_k}={{E(N_k-\mu_{N_k})^3 }\over {\sigma _{N_k}^3}}$$
I'm not familiar with gitbook, but I can suggest at least this: while you have
$$S_{N_k}={{E(N_k-\mu_{N_k})^3 }\over {\sigma _{N_k}^3}}$$,
it is usually suggested that the comma is inside the formula (may be gitbook requires that as a good practice), so try:
$$S_{N_k}={{E(N_k-\mu_{N_k})^3 }\over {\sigma _{N_k}^3}},$$

SCSS compiler not working properly in PyCharm

I am trying to set up a SCSS transpiler in PyCharm for Django project.
Basically, what I need is to convert /static/scss/main.scss to /static/css/main.css
Here are the configurations of SCSS File Watcher:
Program: /home/maverick/.rvm/gems/ruby-2.2.3/bin/scss
Arguments: --no-cache --update /home/maverick/Documents/DjangoProjects/timberg/static/css/$FileNameWithoutExtension$.css
Working directory: /home/maverick/Documents/DjangoProjects/timberg/static/scss
Output paths to refresh: /home/maverick/Documents/DjangoProjects/timberg/static/css/$FileNameWithoutExtension$.css
What is happening is that main.css is being generated where it should. But it contains only errors, not the expected css, like this:
/*
Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.
on line 39 of /home/maverick/Documents/DjangoProjects/timberg/static/css/main.css
and etc.
What is wrong here? How can I fix it?
The problem was in the Arguments part.
It should be:
$FileName$:/home/maverick/Documents/DjangoProjects/timberg/static/css/$FileNameWithoutExtension$.css
not just:
/home/maverick/Documents/DjangoProjects/timberg/static/css/$FileNameWithoutExtension$.css
My mistake was leaving out $FileName$: at the beginning.

Globbing file pattern

I am new to the Grunt Task Runer. I'm trying to do some file matching in one of my configurations. With this file matching, I need ignore all of my test files, except for one. The one test file that I need to keep is named 'basic.test.js' In an attempt to do this, I currently have the following configuration:
files: [
'src/**/*.js',
'!src/**/*.test.js',
'src/root/basic.test.js'
]
At this time, I am still getting ALL of my tests. This means that my tests in the other test files are still being seen. I'm trying to confirm if I'm doing my globbing pattern correctly. Does my globbing pattern look correct for my scenario?
Thank you!
If you only want one test then there is no need to match and then unmatch all the others. Just include the one test:
files: [
'src/root/basic.test.js'
]

Resources