Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Public repo for HF blog posts

NotificationsYou must be signed in to change notification settings

nipunsadvilkar/blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the official repository of theHugging Face Blog.

If you are an external contributor: If your blog post is not a collaboration post with Hugging Face, please consider creating acommunity blog instead. Community blog posts appear on our blogs main page just like the blogs in this repository.

How to write an article? 📝

1️⃣ Create a branchYourName/Title

2️⃣ Create a md (markdown) file,use a short file name.For instance, if your title is "Introduction to Deep Reinforcement Learning", the md file name could beintro-rl.md. This is important because thefile name will be the blogpost's URL.

3️⃣ Create a new folder inassets. Use the same name as the name of the md file. Optionally you may add a numerical prefix to that folder, using the number that hasn't been used yet. But this is no longer required. i.e. the asset folder in this example could be123_intro-rl orintro-rl. This folder will containyour thumbnail only. The folder number is mostly for (rough) ordering purposes, so it's no big deal if two concurrent articles use the same number.

For the rest of your files, create a mirrored folder in the HuggingFace Documentation Imagesrepo. This is to reduce bloat in the GitHub base repo when cloning and pulling.

🖼️: In terms of images,try to have small files to avoid having a slow loading user experience:

4️⃣ Copy and paste this to your md file and change the elements

  • title
  • thumbnail
  • authors
---title: "PUT YOUR TITLE HERE" thumbnail: /blog/assets/101_decision-transformers-train/thumbnail.gifauthors:- user: your_hf_user- user: your_coauthor---# Train your first Decision TransformerYour content here [...]

When published, the Hub will insert the following UI elements right after the blogpost's main header (i.e. the line that starts with a single#, aka. the<h1>):

  • "Published on [date]"
  • "Update on GitHub" button
  • avatars of the authors that were listed in authors.

5️⃣ Then, you can add your content. It's markdown system so if you wrote your text on notion just control shift v to copy/paste as markdown.

6️⃣ Modify_blog.yml to add your blogpost.

7️⃣ When your article is ready,open a pull request.

8️⃣ The article will bepublished automatically when you merge your pull request.

How to get a nice responsive thumbnail?

1️⃣ Create a1300x650 image

2️⃣ Usethis template and fill the content part.

➡️ Or select a background you like and follow the instructions inthis Figma template.

Using LaTeX

Just add:

\\(your_latex_here\\)

For instance:

\\( Q(S_t, A_t) \\) ➡️$Q(S_t, A_t)$

How to Caption Figures

A couple of alternatives:

How to Use Highlight Boxes

See an examplein this PR. This is to be used sparingly :)

Embed a Space

Just add:

<scripttype="module"src="https://gradio.s3-us-west-2.amazonaws.com/4.36.1/gradio.js"></script><gradio-app theme_mode="light" space="derek-thomas/hugging-face-blog-assistant"></gradio-app>

Code:leaderboard-bigcodebench.mdBlog Example

More Assistance

You can use thecommunity blog editor which has a preview function.

Or check out thisassistant spaceto help with rendering some tricky markdown blocks like:

  • Inserting caption figures with image tables
  • Tip formatting
  • Inserting clickable references

Do give it a like if it was helpful.

About

Public repo for HF blog posts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook99.7%
  • Other0.3%

[8]ページ先頭

©2009-2025 Movatter.jp