Coder Social home page Coder Social logo

Comments (4)

ko2in avatar ko2in commented on June 28, 2024

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:

&lt;link rel="stylesheet" type="text/css" href="/semantic/dist/semantic.min.css" /&gt;
&lt;script src="semantic/dist/semantic.min.js"&gt;&lt;/script&gt;

from fomantic-ui-docs.

ko2in avatar ko2in commented on June 28, 2024

Sorry for my incorrect conclusion about encoding issue. Please check my change request in your PR.

from fomantic-ui-docs.

hkennyv avatar hkennyv commented on June 28, 2024

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.

ko2in avatar ko2in commented on June 28, 2024

@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:
FUI-Getting-Started

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)

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.