Skip to content

Commit 5a1d5ab

Browse files
committed
styles were not properly enqueued
1 parent f3b0f07 commit 5a1d5ab

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README_dev.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Development Setup
2+
3+
I haven't done much effort here myself. Our Boundless Maps WP image has XDebug installed, so I usually use that for breakpoint support etc.
4+
5+
To test if the plugin works on the latest WP version, use the `test.docker-compose.yml` with the latest WP/MySQL images.
6+
7+
## Publishing
8+
9+
`svn` urggh..
10+
11+
1. `svn up` pull updates from WP.org
12+
2. `svn rm/add` to add/remove files from `svn`
13+
3. before overwriting `trunk` create a new tag from `trunk`: `svn cp trunk tags/xxx`
14+
4. copy new files to trunk: `cp -arf documents-git/* dist/trunk`
15+
5. check in the updates: `svn ci -m "message"`

documents-git/documents-git.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ function add_enclosing_classes($sc_attrs, $content) {
4848
}
4949

5050
# Enqueue Github, nbconvert and plugin stylesheet
51-
add_action('wp_enqueue_style', 'add_styles');
51+
add_action('wp_enqueue_scripts', 'add_styles');
5252
function add_styles() {
5353
wp_enqueue_style( 'markdown_git', plugins_url( 'css/markdown-git.css', __FILE__ ));
5454
wp_enqueue_style( 'github_markdown', plugins_url( 'css/github-markdown.css', __FILE__ ));
5555
wp_enqueue_style( 'nbconvert_git', plugins_url( 'css/nbconvert.css', __FILE__ ), 'markdown-git');
5656
}
5757

58-
# Add and set up the Page Builder class
58+
# Add and set up the Page Builder class for the settings UI
5959
require_once(MARKDOWNGIT_PLUGIN_PATH . '/includes/RationalOptionPages.php');
6060
$pages = array(
6161
'settings_markdowngit' => array(

0 commit comments

Comments
 (0)