Code Monkey home page Code Monkey logo

dev.to's People

Contributors

inverted-capital avatar maxime1992 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dev.to's Issues

Make basePath customizable

I'd love to be able to use this with NetlifyCMS. But NetlifyCMS does not use actual relative paths, which results in a weird url when it's parsed by dev-to-git.

The solution is to not rely on the markdown file's basePath, but I suggest making it configurable.

if (path) {
        const basePath: string = 'static'; // This solves my issue, but actual solution might make this customizable?
        const assetPath = path.substr(2);

        localImagesToReplace.push({
          localImage: image,
          remoteImage: `![${alt || ''}](https://raw.githubusercontent.com/${this.articleConfig.repository.username}\/${
            this.articleConfig.repository.name
          }/master/${basePath}/${assetPath}${title ? ` '${title}'` : ``})`,
        });
      }

I of course completely understand if you don't want to implement this. This package is still super awesome :)

Error: The command "yarn run prettier:check" exited with 1.

Hi

I'm using the template you provided Nothing much is changed, excepting for the info that need to be replaced.

I'm constantly receiving the error: The command "yarn run prettier:check" exited with 1.

I tried to remove prettier with no success...
This is what I've got:

yarn run v1.15.2
warning package.json: No license field
error Command "test" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command "yarn test" exited with 1.
cache.2
store build cache
0.00s1.14snothing changed
Done. Your build exited with 1.

do you know what it might be?

The command "yarn run embedme:check" exited with 1.

After resolving the issues with prettier, I now get this on travis:

$ yarn run embedme:check
yarn run v1.15.2
warning package.json: No license field
$ yarn run embedme --verify
warning package.json: No license field
$ embedme blog-posts/**/*.md --verify
internal/modules/cjs/loader.js:670
    throw err;
    ^
Error: Cannot find module 'glob'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/travis/build/ElGoorf/dev.to/node_modules/embedme/dist/embedme.js:13:32)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command "yarn run embedme:check" exited with 1.

Error: Process completed with exit code 1. Error message: ""

Hi,

I'm trying to publish a new post with the template but I suck with an empty error message while deploying to dev.to, I tried to post it as a draft with no content too but without success.

I removed embedme from yarn and actin but no success too but the old posts seems to be okay.

Run DEV_TO_GIT_TOKEN=*** yarn run dev-to-git
yarn run v1.22.10
warning package.json: No license field
$ dev-to-git
[DRAFT] Article "Things you should know before starting Prestashop development" encountered an error:
Error name: "Error"
Error message: ""
Error stack: "Error
    at Article.<anonymous> (/home/runner/work/dev.to/dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:11180:39)
    at step (/home/runner/work/dev.to/dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:77:27)
    at Object.next (/home/runner/work/dev.to/dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:58:57)
    at fulfilled (/home/runner/work/dev.to/dev.to/node_modules/dev-to-git/bin/dev-to-git.umd.js:48:62)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)"
[PUBLISHED] Article "Dockerize your Laravel project with Laradock" is already up to date
[PUBLISHED] Article "Is linux good enough for everyday programming?" is already up to date
[PUBLISHED] Article "Setup Prestashop CMS with Docker Compose" is already up to date
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

Did I something wrong? I think I;m missing something.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.