Skip to content

Commit 6532855

Browse files
committed
feat docs: update changelog
Tests: протестировано CI commit_hash:e518988625c907ccba56ff574d0558ab06c69e06
1 parent c28f3aa commit 6532855

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

scripts/docs/en/userver/codegen_overview.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ You may use code generators for the following activity:
1313
* @ref scripts/docs/en/userver/chaotic_clients.md
1414
* @ref scripts/docs/en/userver/sql_files.md
1515

16-
Aside from that, there is a `userver_embed_file` cmake function for embedding arbitrary data:
16+
## userver_embed_file and embedding files
17+
18+
For embedding arbitrary data there is a `userver_embed_file` CMake function:
1719

1820
@snippet samples/embedded_files/CMakeLists.txt embedded
1921

22+
To use the embedded file from C++ just include the generated header and call @ref utils::FindResource() function to
23+
get the embedded file contents:
24+
25+
@snippet samples/embedded_files/main.cpp embedded usage
26+
27+
2028
----------
2129

2230
@htmlonly <div class="bottom-nav"> @endhtmlonly

scripts/docs/en/userver/roadmap_and_changelog.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Changelog news also go to the
4646
* Added support for ReplyTo, CorrelationId, Expiration fields. Many thanks to
4747
[Alexander Aparin](https://github.com/alex-aparin) for the PR!
4848
* @ref s3api::Client now supports multipart upload.
49-
* Redis now understands the GEOPOS command via @ref storages::redis::Client::Geopos().
50-
* Redis now understands the EXPIRE command via @ref storages::redis::Client::Expire().
49+
* Redis now understands the `GEOPOS` and `EXPIRE` commands via @ref storages::redis::Client member function `Geopos()`
50+
and `Expire()`.
5151
* Thread Sanitizer suppression file `cmake/tsan.suppressions.txt` is now installed and used in internal CI TSan tests
5252
for universal, core and gRPC.
5353
* @ref logging::LogExtra::Value now supports `bool` values. Many thanks to
@@ -89,6 +89,7 @@ Changelog news also go to the
8989
* Boost, c-ares, libev, libnghttp2, yaml-cpp, openssl now can be downloaded via CPM.
9090
* Added more tests for gRPC in subdirectories. Many thanks to [Aleksey Ignatiev](https://github.com/ae-ignatiev)
9191
for providing test samples.
92+
* Added CI runs on Arch. Many thanks to [Konstantin Goncharik](https://github.com/botanegg) for the PR!
9293
* Added CI runs on Debian.
9394

9495
* Documentation and diagnostics
@@ -99,7 +100,7 @@ Changelog news also go to the
99100
* Clarified ownership of buckets in @ref utils::statistics::Histogram.
100101
* Added mirrors to the videos at @ref scripts/docs/en/userver/publications.md.
101102
* Redis now provides much more information in logs.
102-
* Added troubleshooting info on SIGUSR1 to @ref ‎scripts/docs/en/userver/faq.md.
103+
* Added troubleshooting info on `SIGUSR1` to @ref ‎scripts/docs/en/userver/faq.md .
103104

104105

105106
### Release v2.12

scripts/docs/en/userver/tutorial/hello_service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Sometimes it is handy to embed file(s) content into the binary to avoid addition
101101
You may use it with `userver_embed_file()` cmake function.
102102
It generates cmake target which can be linked into your executable target.
103103

104-
Cmake part looks like the following:
104+
CMake part looks like the following:
105105

106106
@snippet samples/embedded_files/CMakeLists.txt embedded
107107

0 commit comments

Comments
 (0)