diff --git a/css/admin-doc.css b/css/admin-doc.css index 51605b2..124fa20 100644 --- a/css/admin-doc.css +++ b/css/admin-doc.css @@ -1,27 +1,33 @@ -.wp-doc-viewer{ - display: flex; +.wp-doc-viewer { + display: flex; + justify-content: space-between; } .wp-doc-viewer__content { - max-width: 54em; - flex-grow: 1; + max-width: 54em; + flex-grow: 1; } -.wp-doc-viewer__toc--item.current{ - font-weight: 700; +.wp-doc-viewer__toc { + padding: 2em; + background-color: white; } -.wp-doc-viewer img{ - max-width: 100%; - height: auto; +.wp-doc-viewer__toc--item.current { + font-weight: 700; } -.wp-doc-viewer ul{ - list-style: disc outside; - margin-left: 3em; +.wp-doc-viewer img { + max-width: 100%; + height: auto; } -.wp-doc-viewer blockquote{ - border-left: 5px solid #0073aa; - padding-left: 1em; - margin-left: 1em; + +.wp-doc-viewer ul { + list-style: disc outside; + margin-left: 3em; +} +.wp-doc-viewer blockquote { + border-left: 5px solid #0073aa; + padding-left: 1em; + margin-left: 1em; } diff --git a/wp-doc-viewer.php b/wp-doc-viewer.php index 5956b48..d58bfd7 100644 --- a/wp-doc-viewer.php +++ b/wp-doc-viewer.php @@ -70,7 +70,7 @@ private function add_admin_menu(): void foreach ( $this->order_sections as $section_slug => $pages ){ - $page_suffix[] = add_submenu_page( 'site-user-documentation', $section_slug, $section_slug, 'manage_options', $section_slug, array( $this, 'add_documentation_content_page')); + $page_suffix[] = add_submenu_page( 'site-user-documentation', $section_slug, ucfirst($section_slug), 'manage_options', $section_slug, array( $this, 'add_documentation_content_page')); } foreach ( $page_suffix as $suffix ){ @@ -103,7 +103,7 @@ private function get_all_child_page(): array $meta = $parsedown->meta( file_get_contents( $file ) ); - $section = 'Générale'; + $section = 'Général'; if( isset( $meta['section'] ) ){ $section = $meta['section']; } else { @@ -208,7 +208,7 @@ private function toc() foreach ( $this->order_sections as $sec => $pages ){ - echo "