Skip to content

Conversation

@VitalRu
Copy link
Contributor

@VitalRu VitalRu commented Dec 25, 2025

No description provided.

@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link

@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link

@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link


## Стилизация PDF

Вы можете изменить внешний вид PDF-документа с помощью [кастомных CSS-стилей](../style/css-js.md).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"кастомных" нужно или убрать или заменить - жаргон

@@ -0,0 +1,110 @@
# Создание PDF из документации

Diplodoc может генерировать документацию в формате PDF. Это полезно, когда нужно подготовить материалы для Open Source проекта или проверить верстку перед публикацией.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предложение про то, зачем полезно генерить PDF, можно убрать: тому, кто ищет эту информацию, это и так понятно.


{% note info %}

Для каждого файла `toc.yaml` Diplodoc создает отдельный `single-page.pdf`. Страница в PDF располагаются в том же порядке, что и в оглавлении.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Страницы" -> "Статьи располагаются в том же порядке..."


PDF-документ состоит из трех частей:

1. **Титульная страница**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ТитульнЫЕ страницЫ"

- path-to-page-n.md
```

Эти страницы не дублируются в основном оглавлении и отображаются в начале PDF.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут всё как-то не так: страницы внутри pdf идут перед оглавлением и не добавляются в него;

"дублируется" - неподходящая формулировка, как кажется;

"отображается" - тоже не лучшее слово для определения того, где страницы размещены внутри pdf


- блоки Page Constructor;
- перекрестные ссылки;
- изображения и другие медиа-файлы.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

также, можно добавить, что каждая следующая статья внутри PDF идёт с новой страницы


{% list tabs %}

- Локальная сборка
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

с точки зрения пользователя, любая сборка будет локальной — лучше переформулировать под включение сборки через параметр запуска и через настройку .yfm ; возможно, вообще убрать табы в этом месте

@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link

@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link

@github-actions
Copy link

✅ Documentation build

Revision built successfully
Revision preview link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants