Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation sidesheet #9724

Merged
merged 6 commits into from
Feb 3, 2022

Conversation

juliachvyrova
Copy link
Contributor

@juliachvyrova juliachvyrova commented Jan 23, 2022

What

Fixes #8411

Update styles for Documentation Setup Guide sidesheet

  • Remove html comments

  • Improve tables

Снимок экрана 2022-01-27 в 23 50 54

  • Improve code block

Снимок экрана 2022-01-28 в 00 43 08

  • Improve blockquote block

Снимок экрана 2022-01-28 в 00 37 53

  • Use colors from app theme

  • Fix font for titles (h1, h2) and bold text

  • Improve links

Снимок экрана 2022-01-24 в 01 47 47

@juliachvyrova juliachvyrova changed the title Julia/improve documentation sidesheet Improve documentation sidesheet Jan 23, 2022
@github-actions github-actions bot added area/frontend area/platform issues related to the platform labels Jan 23, 2022
@juliachvyrova juliachvyrova temporarily deployed to more-secrets January 23, 2022 22:51 Inactive
@juliachvyrova juliachvyrova self-assigned this Jan 23, 2022
@juliachvyrova juliachvyrova temporarily deployed to more-secrets February 2, 2022 23:03 Inactive
@juliachvyrova juliachvyrova marked this pull request as ready for review February 2, 2022 23:10
@juliachvyrova juliachvyrova temporarily deployed to more-secrets February 2, 2022 23:11 Inactive
@juliachvyrova juliachvyrova temporarily deployed to more-secrets February 3, 2022 08:25 Inactive
const { data: docs, isLoading } = useDocumentation(documentationUrl);

const removeBaseUrl = (url: { path: string }) => {
if (url.path.match(/^..\/..\/.*/)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

❓ Could you give an example of what URLs we're trying to rewrite here? This currently matches everything beginning with two arbitrary letters than slash then two more arbitrary letters? My feeling of gut is we're trying to rewrite specifically ../../ URLs here (in which case the dots would need to be escaped in the regex). Also if that's the case we could improve this by simply using startsWith, which is a bit more performant, and easier to read than /^\.\.\/\.\.\/.* :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Fixed

@@ -49,6 +49,14 @@ task copyDocs(type: Copy) {
duplicatesStrategy DuplicatesStrategy.INCLUDE
}

task copyAssets(type: Copy) {

This comment was marked as resolved.

@juliachvyrova juliachvyrova temporarily deployed to more-secrets February 3, 2022 17:13 Inactive
@jamakase jamakase merged commit 18ac94d into master Feb 3, 2022
@jamakase jamakase deleted the julia/improve-documentation-sidesheet branch February 3, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Documentation Sidesheet UI
4 participants