Coder Social home page Coder Social logo

Comments (7)

maybegeek avatar maybegeek commented on September 26, 2024

Hi @ayushnoori ,

I wanted this changed too. For the moment I am using these lines in my additional css file for cayman:

div.sourceCode {
  margin-bottom: 0;
}
div.sourceCode ~ pre {
  margin-bottom: 1.2em;
  background-color: white;
  font-size: 0.7em;
}
div.sourceCode ~ pre::before {
  content: "R {message|warning|error} ...";
  display: block;
  font-style: italic;
  text-decoration: underline;
  padding-bottom: 0.3em;
}

cayman theme, additional css for R messages ...

perhaps that that helps.
christoph

from prettydoc.

ayushnoori avatar ayushnoori commented on September 26, 2024

Hi @maybegeek - thanks, this is a great idea. Would you be willing to share your extra CSS file? I'm interested in any additional enhancements to the base Cayman theme.

Or, any recommendations for where to find a good theme file that can be used out-of-the-box to knit my document? I'm willing to use rmarkdown::html_document rather than prettydoc as I'm not concerned about increased file size, but wasn't able to find a Bootswatch theme that could rival the aesthetic appeal of the prettydoc implementation of the Cayman theme.

from prettydoc.

maybegeek avatar maybegeek commented on September 26, 2024

Hi @ayushnoori ,
my opinionated css edits (for prettydoc 0.4.1, cayman) are here:

https://github.com/maybegeek/css-prettydoc-cayman-anpassungen

have fun with your docs!

Christoph

from prettydoc.

ayushnoori avatar ayushnoori commented on September 26, 2024

Thanks Christoph! I appreciate it.

from prettydoc.

yixuan avatar yixuan commented on September 26, 2024

Thank you @ayushnoori @maybegeek for the discussion. I apologize that I'm quite busy this month and cannot find time to look at this carefully. This seems to be a good feature for prettydoc, and I will think about it when I get some time.

from prettydoc.

ayushnoori avatar ayushnoori commented on September 26, 2024

@yixuan, no worries - thanks for developing such a great package which makes writing good documentation so much easier. Inspired by @maybegeek, I am working on my own style sheet to supplement the Cayman theme, am happy to contribute or make available at my own repo if that would be helpful. For example, below is a rough draft of my implementation for a Table of Contents header:

/* TABLE OF CONTENTS */

div.toc-box {
  margin-top: 1rem;
}

div.toc::before {
  content: "Table of Contents";
  margin-top: 2rem;
  font-weight: 400;
  color: #159957;
  font-size: 1.5em;
}

div.toc {
  padding-top: 4rem;
}

from prettydoc.

ayushnoori avatar ayushnoori commented on September 26, 2024

Hi @yixuan - wanted to follow-up about potentially making this a permanent feature of prettydoc. I've found that Christoph's solution doesn't always work for all languages (adds extra space w/ bash, for example). Thanks!

from prettydoc.

Related Issues (20)

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.