Skip to content

Commit c01d4fd

Browse files
authored
fix docs and enable CI on main branch (#3295)
## Motivation The new `main` branch is forked from the `v0.1.x` branch. It will be made the default branch and going forward we will merge PRs to this branch first (and then forward port to a new `v0.2.x` branch forked from `master`). It looks like Netlify jobs weren't running on the `v0.1.x` branch, and so there were quite a few errors in the docs on that branch (which isn't great because those are the ones that get published to docs.rs). ## Solution Separate to this PR, we've enabled Netlify on the `main` branch, and this change fixes all the errors that were present in the docs. This change sets the GitHub actions to run on the `main` branch instead of `v0.1.x`. It also adds some text in the root README.md which describes the branch set-up. Refs: #3294
1 parent cdc3212 commit c01d4fd

File tree

41 files changed

+132
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+132
-126
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- "v0.1.x"
6+
- "main"
77
pull_request: {}
88

99
env:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
prefix: tracing(-[a-z]+)?
2020
changelog: "$prefix/CHANGELOG.md"
2121
title: "$prefix $version"
22-
branch: v0.1.x
22+
branch: main
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
![Tracing — Structured, application-level diagnostics][splash]
22

3-
[splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg
3+
[splash]: https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/splash.svg
44

55
[![Crates.io][crates-badge]][crates-url]
66
[![Documentation][docs-badge]][docs-url]
7-
[![Documentation (master)][docs-master-badge]][docs-master-url]
7+
[![Documentation (v0.2.x)][docs-v0.2.x-badge]][docs-v0.2.x-url]
88
[![MIT licensed][mit-badge]][mit-url]
99
[![Build Status][actions-badge]][actions-url]
1010
[![Discord chat][discord-badge]][discord-url]
@@ -13,8 +13,8 @@
1313
[crates-url]: https://crates.io/crates/tracing
1414
[docs-badge]: https://docs.rs/tracing/badge.svg
1515
[docs-url]: https://docs.rs/tracing
16-
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
17-
[docs-master-url]: https://tracing.rs
16+
[docs-v0.2.x-badge]: https://img.shields.io/badge/docs-v0.2.x-blue
17+
[docs-v0.2.x-url]: https://tracing.rs
1818
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
1919
[mit-url]: LICENSE
2020
[actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg
@@ -23,14 +23,22 @@
2323
[discord-url]: https://discord.gg/EeF3cQw
2424

2525
[Website](https://tokio.rs) |
26-
[Chat](https://discord.gg/EeF3cQw) | [Documentation (master branch)](https://tracing-rs.netlify.com/)
26+
[Chat](https://discord.gg/EeF3cQw)
2727

2828
## Overview
2929

3030
`tracing` is a framework for instrumenting Rust programs to collect
3131
structured, event-based diagnostic information. `tracing` is maintained by the
3232
Tokio project, but does _not_ require the `tokio` runtime to be used.
3333

34+
### Branch set-up
35+
36+
- [`main`](https://github.com/tokio-rs/tracing/tree/main) - Default branch, crates.io releases are done from this branch. This was previously the
37+
`v0.1.x` branch.
38+
- [`v0.2.x`](https://github.com/tokio-rs/tracing/tree/v0.2.x) - Branch containing the as-yet unreleased 0.2 version of `tracing-core`, `tracing`, and
39+
all the other tracing crates that depend on these versions. This was previously the `master`
40+
branch.
41+
3442
## Usage
3543

3644
### In Applications

tracing-appender/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
![Tracing — Structured, application-level diagnostics][splash]
22

3-
[splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg
3+
[splash]: https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/splash.svg
44

55
# tracing-appender
66

77
Writers for logging events and spans
88

99
[![Crates.io][crates-badge]][crates-url]
1010
[![Documentation][docs-badge]][docs-url]
11-
[![Documentation (master)][docs-master-badge]][docs-master-url]
11+
[![Documentation (v0.2.x)][docs-v0.2.x-badge]][docs-v0.2.x-url]
1212
[![MIT licensed][mit-badge]][mit-url]
1313
[![Build Status][actions-badge]][actions-url]
1414
[![Discord chat][discord-badge]][discord-url]
@@ -19,8 +19,8 @@ Writers for logging events and spans
1919
[crates-url]: https://crates.io/crates/tracing-appender/0.2.2
2020
[docs-badge]: https://docs.rs/tracing-appender/badge.svg
2121
[docs-url]: https://docs.rs/tracing-appender/0.2.2
22-
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
23-
[docs-master-url]: https://tracing.rs/tracing-appender
22+
[docs-v0.2.x-badge]: https://img.shields.io/badge/docs-v0.2.x-blue
23+
[docs-v0.2.x-url]: https://tracing.rs/tracing-appender
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
2525
[mit-url]: ../LICENSE
2626
[actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg

tracing-appender/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
//!
55
//! [`tracing`][tracing] is a framework for structured, event-based diagnostic information.
66
//! `tracing-appender` allows events and spans to be recorded in a non-blocking manner through
7-
//! a dedicated logging thread. It also provides a [`RollingFileAppender`][file_appender] that can
7+
//! a dedicated logging thread. It also provides a [`RollingFileAppender`] that can
88
//! be used with _or_ without the non-blocking writer.
99
//!
1010
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
1111
//!
1212
//! [msrv]: #supported-rust-versions
13-
//! [file_appender]: rolling::RollingFileAppender
13+
//! [`RollingFileAppender`]: rolling::RollingFileAppender
1414
//! [tracing]: https://docs.rs/tracing/
1515
//!
1616
//! # Usage
@@ -136,7 +136,7 @@
136136
//! long as doing so complies with this policy.
137137
//!
138138
#![doc(
139-
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
139+
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/logo-type.png",
140140
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"
141141
)]
142142
#![cfg_attr(docsrs, deny(rustdoc::broken_intra_doc_links))]

tracing-appender/src/rolling.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! A rolling file appender.
22
//!
3-
//! Creates a new log file at a fixed frequency as defined by [`Rotation`][self::Rotation].
3+
//! Creates a new log file at a fixed frequency as defined by [`Rotation`].
44
//! Logs will be written to this file for the duration of the period and will automatically roll over
55
//! to the newly created log file once the time period has elapsed.
66
//!
@@ -116,9 +116,9 @@ impl RollingFileAppender {
116116
/// Creates a new `RollingFileAppender`.
117117
///
118118
/// A `RollingFileAppender` will have a fixed rotation whose frequency is
119-
/// defined by [`Rotation`][self::Rotation]. The `directory` and
120-
/// `file_name_prefix` arguments determine the location and file name's _prefix_
121-
/// of the log file. `RollingFileAppender` will automatically append the current date
119+
/// defined by [`Rotation`]. The `directory` and `file_name_prefix`
120+
/// arguments determine the location and file name's _prefix_ of the log
121+
/// file. `RollingFileAppender` will automatically append the current date
122122
/// and hour (UTC format) to the file name.
123123
///
124124
/// Alternatively, a `RollingFileAppender` can be constructed using one of the following helpers:
@@ -340,9 +340,9 @@ pub fn hourly(
340340
/// a non-blocking, daily file appender.
341341
///
342342
/// A `RollingFileAppender` has a fixed rotation whose frequency is
343-
/// defined by [`Rotation`][self::Rotation]. The `directory` and
344-
/// `file_name_prefix` arguments determine the location and file name's _prefix_
345-
/// of the log file. `RollingFileAppender` automatically appends the current date in UTC.
343+
/// defined by [`Rotation`]. The `directory` and `file_name_prefix`
344+
/// arguments determine the location and file name's _prefix_ of the log file.
345+
/// `RollingFileAppender` automatically appends the current date in UTC.
346346
///
347347
/// # Examples
348348
///
@@ -376,9 +376,9 @@ pub fn daily(
376376
/// a non-blocking, weekly file appender.
377377
///
378378
/// A `RollingFileAppender` has a fixed rotation whose frequency is
379-
/// defined by [`Rotation`][self::Rotation]. The `directory` and
380-
/// `file_name_prefix` arguments determine the location and file name's _prefix_
381-
/// of the log file. `RollingFileAppender` automatically appends the current date in UTC.
379+
/// defined by [`Rotation`]. The `directory` and `file_name_prefix` arguments
380+
/// determine the location and file name's _prefix_ of the log file.
381+
/// `RollingFileAppender` automatically appends the current date in UTC.
382382
///
383383
/// # Examples
384384
///

tracing-attributes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "tracing-attributes"
44
# - Remove path dependencies
55
# - Update doc url in README.md.
66
# - Update CHANGELOG.md.
7-
# - Create "v0.1.x" git tag.
7+
# - Create "tracing-attributes-0.1.x" git tag.
88
version = "0.1.28"
99
authors = [
1010
"Tokio Contributors <team@tokio.rs>",

tracing-attributes/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
![Tracing — Structured, application-level diagnostics][splash]
22

3-
[splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg
3+
[splash]: https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/splash.svg
44

55
# tracing-attributes
66

77
Macro attributes for application-level tracing.
88

99
[![Crates.io][crates-badge]][crates-url]
1010
[![Documentation][docs-badge]][docs-url]
11-
[![Documentation (master)][docs-master-badge]][docs-master-url]
11+
[![Documentation (v0.2.x)][docs-v0.2.x-badge]][docs-v0.2.x-url]
1212
[![MIT licensed][mit-badge]][mit-url]
1313
[![Build Status][actions-badge]][actions-url]
1414
[![Discord chat][discord-badge]][discord-url]
@@ -19,8 +19,8 @@ Macro attributes for application-level tracing.
1919
[crates-url]: https://crates.io/crates/tracing-attributes
2020
[docs-badge]: https://docs.rs/tracing-attributes/badge.svg
2121
[docs-url]: https://docs.rs/tracing-attributes/0.1.28
22-
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
23-
[docs-master-url]: https://tracing-rs.netlify.com/tracing_attributes
22+
[docs-v0.2.x-badge]: https://img.shields.io/badge/docs-v0.2.x-blue
23+
[docs-v0.2.x-url]: https://tracing.rs/tracing_attributes
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
2525
[mit-url]: LICENSE
2626
[actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg

tracing-attributes/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//! long as doing so complies with this policy.
5454
//!
5555
#![doc(
56-
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
56+
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/logo-type.png",
5757
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"
5858
)]
5959
#![cfg_attr(docsrs, deny(rustdoc::broken_intra_doc_links))]

tracing-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "tracing-core"
55
# - Update html_root_url.
66
# - Update doc url in README.md.
77
# - Update CHANGELOG.md.
8-
# - Create "v0.1.x" git tag.
8+
# - Create "tracing-core-0.1.x" git tag.
99
version = "0.1.33"
1010
authors = ["Tokio Contributors <team@tokio.rs>"]
1111
license = "MIT"

0 commit comments

Comments
 (0)