Git Product home page Git Product logo

guides's Introduction

Toha Guides

Netlify Status Repository Size Contributor Last Commit Open Issues Open Pull Requests License Security Header

Documentation site for Hugo theme Toha.

guides's People

Contributors

bernatbc avatar brugui7 avatar chutommy avatar daviddavo avatar dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar habibrh26 avatar hossainemruz avatar imgbot[bot] avatar imgbotapp avatar jbleduigou avatar joshuajebaraj avatar kodiakhq[bot] avatar kyserbyte avatar marionmoseby avatar michmich112 avatar niltied avatar rihoj avatar silverluke avatar stueja avatar sylvester-roos avatar zicklam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

guides's Issues

Reflection about traduction

Re @hossainemruz,

Suppose I want to start translating the guide into French. How should I go about it ?

Today, the content/posts directory doesn't have an en or fr directory to differentiate articles from one language to another.

Should I conclude that it would be necessary to create a complete clone of the original repository and replace the English content with French content ? This would not be practical as someone wanted to offer a German or Spanish translation for example, there would be as many repositories of the guide as there are language ๐Ÿค”๐Ÿคจ.

Last question : If someone updates the original doc, how can I detect this and report the change to another language ?

Do you have an opinion ? Thank you by advance for your feedback.

A section to integrate Custom Headers in hugo using Netlify

Describe the solution you'd like

Code

Currently, one can integrate custom HTTP headers to Hugo site by adding the below code portion to netlify.toml file
[[headers]] for = "/*" [headers.values] X-Frame-Options = "DENY" X-XSS-Protection = "1; mode=block" X-Content-Type-Options = "nosniff" Content-Security-Policy = "" Referrer-Policy = "strict-origin-when-cross-origin" Strict-Transport-Security = "max-age=2592000" Permissions-Policy = ''' accelerometer=(none), ambient-light-sensor=(none), autoplay=(none), camera=(none), encrypted-media=(none), fullscreen=(none), geolocation=(none), gyroscope=(none), magnetometer=(none), microphone=(none), midi=(none), payment=(none), picture-in-picture=(none), speaker=(none), usb=(none), vibrate=(none), vr=(none)'''

Currently, I have kept the content-security-policy section blank because it can be different for particular sites based on their src of javascript files, image files, and style files.

Tags

You do not mention tags in your docs but they are pretty easy to add.

        <ul id="tags-single">
          <li>Tags:</li>
          {{ range .Params.tags }}
          <li><a href="/tags/{{ . | urlize }}">{{ . }}</a> </li>
          {{ end }}
        </ul>

and add

taxonomies:
  tag: tags

to config.yaml

I could update the docs but figured I would ask first.

Thanks for all the work btw!

Alert code example in shortcode page

Hi @hossainemruz,

Context

When you read the shortcodes page. We can see the different alert blocks available on the page. But there are no code examples associated with each block on the post.

This is not practical, the visitor is forced to go to the git repository to see the code examples.

Solution possible

For each alert block, put the associated shortcode directly on the post.

Note

Note that this development is valid for the entire rest of the page.

Automatic Site Validations

I'm assuming you use this repo for validating changes to the theme repo. I understand I'm opening a lot of PRs which can take a lot of time to validate and test. A tool i've found very useful for validating changes is percy.io which will automatically take screenshots of all of the pages and do a visual diff as a github check which highlights visual screenshot differences between branches. This creates views like this for each PR that you can then approve to check visual diffs across viewports and browsers
image

If you wanted to set something similar up for this repo, I did so doing the following

For my site, this does generate 48 screenshots (each of my posts and home page across firefox and chrome across 2 viewports) which would give me ~100prs worth of screenshots per month. Since your site has many more posts, it would probably be good to restrict the number of pages it actually tests to be a more reasonable amount via https://docs.percy.io/docs/sdk-configuration#snapshot.

I also setup https://dependabot.com/submodules/ to automatically create PRs updating my submodule. This combined with percy + i use vercel to auto deploy all PR branches (which you use netlify but it does the same thing). These things combined make for some really nice automation around PR validation and consuming new theme changes (like this alex-bezek/blog#47 ).

I just thought i would share to see if you were interested.

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.