Giter Club home page Giter Club logo

Comments (5)

bouncepaw avatar bouncepaw commented on August 27, 2024

For now you can redefine static files with a reverse proxy. Some people use nginx for that.

The question is, why would one want to replace these files? ๐Ÿคจ

from mycorrhiza.

juev avatar juev commented on August 27, 2024

For example, completely redefine styles, or redefine robots.txt the file.

So that the styles are not formed as a large file, which then needs to be repeated to redefine all incoming elements.

from mycorrhiza.

Eragonfr avatar Eragonfr commented on August 27, 2024

The default robots.txt disallow all user-agents but people probably wants their wiki to be available on search engines.
And personally, don't want to run a server only to serve one file.
So being able to replace it completely would be great.

For the styling it's easy to simply overwrite the defaults with the custom.css file. Set all the values that exists in the default style. But the result can be a bit bloated.

from mycorrhiza.

bouncepaw avatar bouncepaw commented on August 27, 2024

For example, completely redefine styles,

You can do that, see file structure docs. static/default.css is the file you need to make.

For the styling it's easy to simply overwrite the defaults with the custom.css file.

See above.

The default robots.txt disallow all user-agents but people probably wants their wiki to be available on search engines.

This is not true, Mycorrhiza is seen in search engines. For example, in Duck Duck Go. In the default robots.txt, you can see that only the following subset is indexed:

Allow: /help/
Allow: /hypha/
Allow: /recent-changes
Allow: /list
# the rest is Disallow

I'm not a big fan of tens of spiders triggering Git for outdated historic content, so I limited the indexed scope to the useful stuff only.

Moreover, turns out, robots.txt can be redefined. I didn't remember that! I think I should make it more transparent and known.

As a result, if we have a file in the source of the embedded files, we cannot redefine it, that is, there is no way to simply replace it if necessary.

I don't think it's true. Can you please provide a reproduction instruction?

from mycorrhiza.

Eragonfr avatar Eragonfr commented on August 27, 2024

This is not true, Mycorrhiza is seen in search engines.
Sorry it was probably a problem with my browser cache.

robots.txt can be redefined. I didn't remember that! I think I should make it more transparent and known.
I just tried it to remove ChatGPT from my website and I can confirm that it works. Maybe all that is missing is some docs.

from mycorrhiza.

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.