Comments (4)
Hi, thank you for your contribution. Actually, this doesn't intend to include on that documentation page. It's just for demonstration how should the FUI CSS and JS include in your HTML project. The browser automatically trying to find the CSS and JS file, because the CSS and JS links are not encoded in the demonstration.
So, with or without forward slash, this will still return 404 because, this doesn't actually exist under semantic
directory on doc site.
The correct solution should be encoding the HTML for <link>
and <script>
tags. Example:
<link rel="stylesheet" type="text/css" href="/semantic/dist/semantic.min.css" />
<script src="semantic/dist/semantic.min.js"></script>
from fomantic-ui-docs.
Sorry for my incorrect conclusion about encoding issue. Please check my change request in your PR.
from fomantic-ui-docs.
Thanks @ko2in , I think that there is a misunderstanding. I'm saying that there is an error in the instructions on the "getting started" page. If someone were to follow the instructions here, they will get the errors I listed above in the OP.
Please see my edited OP for the steps to reproduce and happy to answer any other questions!
from fomantic-ui-docs.
@hkennyv Thank you for your PR and sandbox. But, there's no misunderstanding. We don't have semantic
directory on the doc site.
So, <link rel="stylesheet" type="text/css" href="/semantic/dist/semantic.min.css" />
and <script src="/semantic/dist/semantic.min.js"></script>
would receive 404, with or without starting with a slash.
You're getting 404 error in getting started page because of the following example:
Such example code blocks are generated by a script and it's sending the request for some reasons, and failed since there's no semantic
directory on the doc site.
So, the PR you've submitted is correct and need some adjustments.
from fomantic-ui-docs.
Related Issues (20)
- [seach] the "cancel query" behavour is written twice in the Fomntic-UI website HOT 2
- [Demo] Some calendar demos don't work on Safari HOT 3
- Emoji documentation link not in sync HOT 1
- Remote request seems to be broken HOT 1
- [fomantic-ui.com] Better searching on the fomantic-ui.com website on the icons page HOT 6
- [Docs] Toggle inverted mode examples/code HOT 1
- [checkbox] missing behaviours HOT 1
- [label] Examples for keyboard shortcuts using code element HOT 3
- Improve html/head title HOT 3
- [flyout] cannot close position example on mobile HOT 2
- Search not relevant on icon page HOT 1
- Calendar example input isn't wide enough HOT 5
- about overlay nag component HOT 4
- Icons search on site is broken HOT 2
- [website] Category search example not working HOT 1
- adding search feature on the navbar while reading the docs HOT 1
- Small typo in Dropdown -> Settings -> Addition Settings HOT 1
- "Enable only specific Dates" Example for Calendar doesn't work HOT 1
- "Matching Fields" header may be linked incorrectly on Form Validation HOT 1
- Inconsistency between dropdowns settings and usage page HOT 1
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 fomantic-ui-docs.