Skip to content

Commit

Permalink
Use @xcvz/up; tidy docs; use system-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
start committed Apr 15, 2024
1 parent 99742d8 commit 985ec6a
Show file tree
Hide file tree
Showing 15 changed files with 924 additions and 723 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/tryup.org.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 unplanned company inc.
Copyright (c) 2024 Daniel Miller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion docs/bundle-a53e02f327a2d1add33a.js

Large diffs are not rendered by default.

1,300 changes: 734 additions & 566 deletions docs/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
"private": true,
"name": "tryup.org",
"version": "0.0.0",
"description": "The official site for [Up](https://github.com/start/up), a lightweight markup language for writing structured content for the web.",
"description": "The official site for [Up](https://github.com/start/up), a markup language for writing structured content in plain text.",
"scripts": {
"start": "webpack-dev-server",
"build": "rm -f docs/{index.html,*.js} && webpack"
},
"repository": {
"type": "git",
"url": "git+https://github.com/unplannedcompany/tryup.org.git"
"url": "git+https://github.com/start/tryup.org.git"
},
"author": "Daniel Miller <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/unplannedcompany/tryup.org/issues"
"url": "https://github.com/start/tryup.org/issues"
},
"homepage": "https://tryup.org",
"devDependencies": {
Expand All @@ -33,7 +33,7 @@
"raw-loader": "3.1.0",
"sass-loader": "7.3.1",
"style-loader": "1.0.0",
"up-lang": "39.0.0",
"@xcvz/up": "1.0.1",
"webpack": "4.39.3",
"webpack-cli": "3.3.7",
"webpack-dev-server": "3.8.0"
Expand Down
8 changes: 4 additions & 4 deletions src/configureEditor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CodeMirror from 'codemirror'
import { parseAndRenderWithTableOfContents } from 'up-lang'
import { parseAndRenderWithTableOfContents } from '@xcvz/up'
import addScrollSyncingEventListeners from './addScrollSyncingEventListeners'
import isTotallyHidden from './isTotallyHidden'
import debounce from './debounce'
Expand Down Expand Up @@ -62,7 +62,7 @@ export default function configureEditor(args) {
// not remove all indentation (which is the default behavior).
CodeMirror.keyMap.default['Shift-Tab'] = 'indentLess'

configureCodeMirrorToIndentSoftWrapedLines(codeMirror)
configureCodeMirrorToIndentSoftWrappedLines(codeMirror)

configureLivePreview(
codeMirror,
Expand Down Expand Up @@ -239,10 +239,10 @@ function syncScrollingFromEditor(codeMirror, documentationScrollerElement) {
//
// It does not work when tabs are used for indentation, because CodeMirror handles
// tab characters using a special `<span class="cm-tab">` element. Luckily, our
// editor is conigured (by default) to use spaces for indentation.
// editor is configured (by default) to use spaces for indentation.
//
// TODO: Replace leading tab characters on-paste
function configureCodeMirrorToIndentSoftWrapedLines(codeMirror) {
function configureCodeMirrorToIndentSoftWrappedLines(codeMirror) {
const charWidth = codeMirror.defaultCharWidth()

// This value is taken from the "PADDING" section of `codemirror.css`
Expand Down
Loading

0 comments on commit 985ec6a

Please sign in to comment.