update ru content for docs
This commit is contained in:
parent
4d106ec2b8
commit
51e98c685b
29 changed files with 494 additions and 855 deletions
|
|
@ -1,44 +1,50 @@
|
|||
---
|
||||
description: Curated pluggable content
|
||||
sidebar_position: 1
|
||||
title: "Наборы контента"
|
||||
nav_order: 5
|
||||
has_children: true
|
||||
permalink: /content-packs/
|
||||
---
|
||||
|
||||
# Content Packs
|
||||
# Наборы контента
|
||||
|
||||
You can create your own content pack! It simply needs to be set up as a **static website with local links**. This website will run from the box itself, so all of the images and files required for the website need to be contained within one main folder.
|
||||
Вы можете создать свой собственный набор контента! Его просто нужно оформить как **статический сайт с локальными ссылками**. Этот сайт будет работать непосредственно с устройства, поэтому все изображения и файлы, необходимые для сайта, должны находиться в одной главной папке.
|
||||
|
||||
Once you have your static website ready, you will put all of the required files for it in one folder, and place this folder in the **root directory** of your USB drive. This website will be rendered in the browser people use to access the Butter Box portal.
|
||||
Когда ваш статический сайт будет готов, поместите все необходимые файлы в одну папку и разместите эту папку в **корневой директории** вашего USB-накопителя. Этот сайт будет отображаться в браузере, через который пользователи получают доступ к порталу Butter Box.
|
||||
|
||||
Tips for creating a content pack with a static website:
|
||||
Советы по созданию набора контента со статическим сайтом:
|
||||
|
||||
* **Contents.** Everything for the static website must be stored on a USB drive that plugs into the Butter Box. It should not link to resources on the global internet.
|
||||
* **Size.** The size of your content pack is limited by the amount of space available on your USB drive. Though, keep in mind that if multiple people are downloading or watching really large files from the box, there may be some latency.
|
||||
* **Pages.** Links between pages should point to other saved pages in the same folder, not to the internet. You must use relative paths (e.g. about/index.html) instead of absolute web URLs.
|
||||
* **Media.** Pictures, videos, and sounds cannot be linked to from somewhere online. The files need to be in your website folder and stored on the USB drive.
|
||||
* **Libraries.** The website cannot use javascript libraries that rely on an internet connection.
|
||||
* **Styles.** Special fonts and icons (like those from Google Fonts) also need to be packed into the folder, not fetched from the web.
|
||||
* **Содержимое.** Всё для статического сайта должно храниться на USB-накопителе, подключённом к Butter Box. Сайт не должен ссылаться на ресурсы в глобальном интернете.
|
||||
* **Размер.** Размер вашего набора контента ограничен доступным пространством на USB-накопителе. При этом учитывайте, что если несколько человек одновременно скачивают или просматривают очень большие файлы с устройства, возможны задержки.
|
||||
* **Страницы.** Ссылки между страницами должны вести на другие сохранённые страницы в той же папке, а не в интернет. Необходимо использовать относительные пути (например, about/index.html) вместо абсолютных веб-URL.
|
||||
* **Медиа.** Изображения, видео и звуки не могут ссылаться на онлайн-ресурсы. Файлы должны находиться в папке вашего сайта и храниться на USB-накопителе.
|
||||
* **Библиотеки.** Сайт не может использовать JavaScript-библиотеки, которые зависят от интернет-соединения.
|
||||
* **Стили.** Специальные шрифты и иконки (например, из Google Fonts) также должны находиться в папке, а не загружаться из сети.
|
||||
|
||||
### Try It
|
||||
### Попробуйте
|
||||
|
||||
* The zip file below contains a sample static website. To get a feel for how static websites work with butter—Download it. Unzip it. Then, add this set of files to your USB drive.
|
||||
* Приведённый ниже zip-файл содержит пример статического сайта. Чтобы понять, как статические сайты работают с Butter — скачайте его. Распакуйте. Затем добавьте этот набор файлов на ваш USB-накопитель.
|
||||
|
||||
[Sample Static Website.zip](/img/docs/Sample Static Website.zip)
|
||||
|
||||
### Get Started
|
||||
|
||||
The best way to get started with creating your own content pack is to have an idea about the experience and type of information you want to provide, and then to design and build a local static website for it.
|
||||
|
||||
It can be very simple like an audio player for music. Or, a simple list of the five top VPN apps that you recommend. Or it can be more complex like a library or knowledge base of cultural artifacts.
|
||||
[Скачать файл](/assets/Sample%20Static%20Website.zip)
|
||||
|
||||
|
||||
|
||||
### Add website files to a USB drive
|
||||
### Начните работу
|
||||
|
||||
Place a folder with your website files in the **root directory** of a USB drive. Be sure that your website folder contains your **index.html.** The name of this folder will be displayed on the Butter Box portal.
|
||||
Лучший способ начать создание собственного набора контента — это определиться с идеей о том, какой опыт и какую информацию вы хотите предоставить, а затем спроектировать и создать для этого локальный статический сайт.
|
||||
|
||||
<figure><img src="/img/docs/Screenshot 2025-08-16 at 9.46.16 PM.png" alt=""/><figcaption><p>USB directory when viewed in Finder on desktop</p></figcaption></figure>
|
||||
Это может быть что-то очень простое, например, аудиоплеер для музыки. Или список из пяти лучших VPN-приложений, которые вы рекомендуете. Или например библиотека, база знаний культурных артефактов.
|
||||
|
||||
### Connect to your Butter Box to view
|
||||
### Добавьте файлы сайта на USB-накопитель
|
||||
|
||||
Поместите папку с файлами сайта в **корневую директорию** USB-накопителя. Убедитесь, что папка вашего сайта содержит файл **index.html.** Название этой папки будет отображаться на портале Butter Box.
|
||||
|
||||
<figure><img src="/assets/images/Screenshot 2025-08-16 at 9.46.16 PM.png" alt=""/><figcaption><p>Директория USB при просмотре в Finder на компьютере</p></figcaption></figure>
|
||||
|
||||
---
|
||||
|
||||
|
||||
### Подключитесь к Butter Box для просмотра
|
||||
|
||||
Вставьте USB-накопитель в Butter Box. Когда вы откроете портал Butter Box, нажмите **Файлы**. Перейдите в папку сайта. Нажмите для просмотра.
|
||||
|
||||
Insert the USB drive into your Butter Box. When you open the Butter Box portal, tap **Files**. Navigate to the website folder. Tap to view.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue