Comments (5)
The monospace font problem is caused by below CSS rule. If I disable it in browser devtools, the monospace rendering is restored.
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
font-family: "Roboto", Helvetica Neue, Arial, sans-serif;
}
As for the colors, it looks like highlight.js does set appropriate HTML classes, but there is no CSS for those classes present on the page.
from verdaccio.
The monospace font problem is caused by below CSS rule. If I disable it in browser devtools, the monospace rendering is restored.
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { font-family: "Roboto", Helvetica Neue, Arial, sans-serif; }As for the colors, it looks like highlight.js does set appropriate HTML classes, but there is no CSS for those classes present on the page.
So this code is applied from ThemeReset: https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/Theme/ResetStyles.tsx#L9
and the highlight comes from https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/components/Readme/utils.ts
but somehow the ThemeReset takes precedence, overriding the highlightjs
and the css import may be not working (accidentally): https://github.com/verdaccio/verdaccio/blob/master/packages/ui-components/src/components/Readme/ReadmeLight.tsx#L3
I tried testing verdaccio at 5.12 (default helm chart ver) and the colors seems to be appear normally (though the font style is still broken)
I'm still learning about the codebase so it will take a while for me to understand the root cause, but I'll keep trying to explore it as much as I can.
from verdaccio.
Feel free to ask me if to help you speed up
from verdaccio.
@akasection it's probably related to https://github.com/verdaccio/verdaccio/pull/4071/files#diff-29ce1f12c4f6008028d2c7842426ba51cd50d8398025d75ad22a8844944e8ea4 which split the readme into light and dark mode.
from verdaccio.
Additional info:
On the disk, the readme property on package.json from the data folder look like this:
"readme": "ESLint configuration for Javascript files.\n\n## How to use\n\n* Set up [CENSORED](https://CENSORED)\n* Install\n```bash\n$ npm install @bukalapak/eslint-config-base -D\n```\n* Extend the config\n```javascript\n{\n \"extends\": [\n \"@bukalapak/eslint-config-base\"\n ]\n}\n```\n* If the project has files other than javascript, add [`import/extensions` setting](https://github.com/benmosher/eslint-plugin-import#importextensions) to the configuration\n```javascript\n{\n settings: {\n 'import/resolver': {\n node: {\n extensions: ['.js', '.vue'], // for vue project\n extensions: ['.ts'], // for typescript only project\n // etc…\n },\n },\n },\n}\n```"
from verdaccio.
Related Issues (20)
- windows 10 cannot adduser
- Search for plug-ins crashes HOT 2
- I need pagination HOT 1
- Error: Cannot find module '@verdaccio/cli' HOT 1
- Transitive uplink dependencies provide a 404 error HOT 3
- Missing refresh after LogOut in 5.27.0 HOT 2
- Base href value in HTML of http://localhost:4873/ suddenly turns into https://ip.address.of.server/ HOT 1
- use domain can not load packages HOT 1
- Release 5.28.1 HOT 4
- bug: do not cache tarballs from upstreams since 5.26.0 HOT 1
- The uplinks configuration does not take effect during query HOT 2
- Still Fetching Packages from Old Uplink Source after Switching
- Getting EACCES: permission denied, open '/verdaccio/storage/@asyncapi/html-template/package.json.tmp4446934159360625'
- npm ERR! 404 '@vue-office/[email protected]' is not in this registry HOT 1
- config.yml listen: 0.0.0.0:80 is ignored - server still starts listening to default port 4873 HOT 1
- Verdaccio UI not visible HOT 2
- Problems when trying to use npm audit with bucket storage HOT 1
- Missing newline after version output leaves command prompt on the same line
- Copy authorization from request to proxy
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 verdaccio.