GithubHelp home page GithubHelp logo

Branch Develop is Broken about pivot HOT 5 CLOSED

hutchy68 avatar hutchy68 commented on August 22, 2024
Branch Develop is Broken

from pivot.

Comments (5)

Tealk avatar Tealk commented on August 22, 2024

develop branch is now completely broken with commit #52

I don't know why there's a problem I use this branch atm without a problem.

skin.json calls "assets/stylesheets/font-awesome.min.css", missing min.css file in assets. Should just be font-awesome.css.

I forgot to upload font-awesome.min.css

You have...
$out->addHeadItem('font', '');
You are calling an href with a hard set link. What about those who use w/ or whatever/ directory to install MediaWiki.

the path is relative to the directory. It can't cause any problems

https://github.com/Tealk/pivot/tree/font-awesome_css
this version is currently running error-free for me

from pivot.

Hutchy68 avatar Hutchy68 commented on August 22, 2024

I don't know why there's a problem I use this branch atm without a problem.

skin.json calls "assets/stylesheets/font-awesome.min.css", missing min.css file in assets. Should just be font-awesome.css.

skin.json missing resource, breaks everything, so yes the file you forgot to upload is necessary to keep things from breaking. It looks like your version is just a minified version of font-awesome.css. I just pushed back a few things to fix. You can PR the ...min.css back and remove the old font-awesome.css file, but will have to tweak the skin.json file again. Missing the left-canvas in fontawesome.css too.

the path is relative to the directory. It can't cause any problems

It can and it did. href="/skins... would look for domainname.com/skins/.... href="/w/skins... looks in the domainname.com/w/skins/... Yes, your call is relative, but relative to the domain. Not the true path of the domain if MW is installed in a directory not the root.

href="'.$wgLocalStylePath.'/pivot

$wgLocalStylePath will automatically set the first of the relative path /w/skins or /skins or /wiki/skins or even /wiki/w/skins if someone placed a MediaWiki instance in a directory called wiki and still added a w directory in that. Could also use $wgStylePath which is the same as $wgLocalStylePath, "{$wgScriptPath}/skins" See, https://www.mediawiki.org/wiki/Manual:$wgLocalStylePath

My only goal was to get develop working quickly if anyone wants to use or test it.

from pivot.

Tealk avatar Tealk commented on August 22, 2024

Missing the left-canvas in fontawesome.css too.

which left-canvas?

have add {$wgScriptPath} to Pivot.skin.php

from pivot.

Hutchy68 avatar Hutchy68 commented on August 22, 2024

Pull down the branch changes. Some I already made.

from pivot.

Hutchy68 avatar Hutchy68 commented on August 22, 2024

This branch is now fixed and I am going to release it after I finish here and as soon as I update the CHANGELOG.md file and set a version. I made some changes and pushed a new README.md.

Changes in README.md was updating all the Features List and settings, adding and removing some. Need to document this on the live site too. Next couple of big changes on the PR #52 were updating all of Foundation's js to v5.5.3 and pulling in all their changes to their branch of Foundation 5. There were some improvements to address warnings of deprecation of in code. My developer console thanked me 😉 I called the version v5.5.3master just to denote the change.

Also, I added preload of Font Awesome as a feature. Another warning in develop console, preloading the font but not using it early. I also took these other things into consideration when adding it as a feature:

  • MIME type server errors, fix your server if you can
  • Fonts should load what the browser wants and specific browsers load the font based on what is best for them.
  • woff2 is a standard most modern browsers are moving towards if they aren't there already. However, the browser should be able to load the font which it chooses to load, woff2, woff, ttf, etc.... see first point, fix MIME type output on your server.

from pivot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.